Skip to content

Commit 1c961f4

Browse files
committed
refactor(rmi-impl): simplify FieldDescriptor constructor using delegation
- Replace duplicate initialization code in 3-parameter constructor with delegation to 5-parameter constructor - Pass null for Field parameter to maintain same behavior - Substantive lines added: 1, lines removed: 6
1 parent 1062ebe commit 1c961f4

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

yoko-rmi-impl/src/main/java/org/apache/yoko/rmi/impl/FieldDescriptor.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,7 @@ enum ValueMemberAccess {
109109

110110

111111
FieldDescriptor(Class<?> owner, Class<?> type, String name, TypeRepository repo) {
112-
super(repo, name);
113-
this.type = type;
114-
this.declaringClass = owner;
115-
this.valueMemberAccess = ValueMemberAccess.PRIVATE;
116-
getter = null;
117-
setter = null;
112+
this(owner, type, name, null, repo);
118113
}
119114

120115
FieldDescriptor(Class<?> owner, Class<?> type, String name, Field f, TypeRepository repo) {

0 commit comments

Comments
 (0)