Skip to content

Commit

Permalink
Remove getters from collection fields of ClassInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Mar 24, 2016
1 parent aa9b5fd commit 8110f74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ public class ClassInfo extends MemberInfo {
private final String typeParameters;
private final String superclass;
private final String[] interfaces;
private List<FieldInfo> fields = new ArrayList<>();
private List<ConstructorInfo> constructors = new ArrayList<>();
private List<MethodInfo> methods = new ArrayList<>();
private List<InnerClassInfo> classes = new ArrayList<>();
private final List<FieldInfo> fields = new ArrayList<>();
private final List<ConstructorInfo> constructors = new ArrayList<>();
private final List<MethodInfo> methods = new ArrayList<>();
private final List<InnerClassInfo> classes = new ArrayList<>();

private ClassInfo(String name, int version, int modifiers, String typeParameters, String superclass, String[] interfaces) {
super(name, modifiers);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class PackageInfo extends AnnotatedInfo {
private List<InnerClassInfo> classes = new ArrayList<>();
private final List<InnerClassInfo> classes = new ArrayList<>();

private PackageInfo(String name) {
super(name);
Expand Down

0 comments on commit 8110f74

Please sign in to comment.