这些元素可以与restaurantdetails类的成员变量相匹配。
These elements match up to the member variables of the RestaurantDetails class.
当类的变量被声明为类的成员变量时,找到所有权关系是更加可靠的。
It was more reliable at finding ownership relationships when the variables were declared as member variables of the class.
为了实践这些理论,让我们检查泛型信息是否保存在类的成员变量中。
To put this into practice, let us check if the generics information is kept on class fields.
应用推荐