Filed internally by yanivi:
To access collections we are currently using a public final field. For
example, generated Buzz has this:
public final Activities activities = new Activities();
This is exposing an implementation detail. For example, we might consider
instead to create a new instance of Activities every time it is used. By
hiding it behind an accessor method, we would have that flexibilty:
public Activities activities() {
return activities;
}
This also follows our general Java style guide of not having any direct field
accessors.
Original issue reported on code.google.com by rmis...@google.com on 4 Nov 2011 at 3:41
Original issue reported on code.google.com by
rmis...@google.com
on 4 Nov 2011 at 3:41