Skip to content

Commit c85fb97

Browse files
committed
use 1 loop
1 parent 97553ea commit c85fb97

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • codegen/src/main/java/ch/loway/oss/ari4java/codegen/models

codegen/src/main/java/ch/loway/oss/ari4java/codegen/models/Model.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)