File tree Expand file tree Collapse file tree
codegen/src/main/java/ch/loway/oss/ari4java/codegen/models Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -97,15 +97,15 @@ public String toString() {
9797
9898 public void registerInterfaces (JavaInterface j , String apiVersion ) {
9999 for (ModelField mf : fields ) {
100+ // getter
100101 String signature = mf .getSignatureGet ();
101102 String declaration = mf .getDeclarationGet ();
102103 String comment = mf .comment + "\n @return " + mf .typeInterface ;
103104 j .iKnow (signature , declaration , comment , apiVersion );
104- }
105- for (ModelField mf : fields ) {
106- String signature = mf .getSignatureSet ();
107- String declaration = mf .getDeclarationSet ();
108- String comment = "@param val " + (mf .comment .trim ().isEmpty () ? "the value" : mf .comment );
105+ // setter
106+ signature = mf .getSignatureSet ();
107+ declaration = mf .getDeclarationSet ();
108+ comment = "@param val " + (mf .comment .trim ().isEmpty () ? "the value" : mf .comment );
109109 j .iKnow (signature , declaration , comment , apiVersion );
110110 }
111111 }
You can’t perform that action at this time.
0 commit comments