Skip to content

Commit

Permalink
Use o$ for temp variable
Browse files Browse the repository at this point in the history
  • Loading branch information
bowbahdoe committed Apr 26, 2024
1 parent 0baa47f commit d3aa8ff
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ private String staticFactoryMethod(Name className, List<VariableElement> fields)
}
}
staticFactoryMethod.append("\n ) {\n");
staticFactoryMethod.append(" var o = new %s();\n".formatted(className));
staticFactoryMethod.append(" var o$ = new %s();\n".formatted(className));
for (var field : fields) {
staticFactoryMethod.append(" o.set%s(%s);\n".formatted(
staticFactoryMethod.append(" o$.set%s(%s);\n".formatted(
pascal(field.getSimpleName().toString()),
field.getSimpleName()
));
}
staticFactoryMethod.append(" return o;\n");
staticFactoryMethod.append(" return o$;\n");
staticFactoryMethod.append(" }\n\n");
return staticFactoryMethod.toString();
}
Expand Down

0 comments on commit d3aa8ff

Please sign in to comment.