Skip to content

Commit

Permalink
Added some space to the return statement
Browse files Browse the repository at this point in the history
Signed-off-by: Subhajit Ghosh <[email protected]>
  • Loading branch information
subhajit20 committed Mar 31, 2024
1 parent 991afa0 commit 4a8bc8a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/codegen/fromcto/java/javavisitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class JavaVisitor {

parameters.fileWriter.writeLine(1, '@Override');
parameters.fileWriter.writeLine(1, 'public String toString() {');
parameters.fileWriter.writeLine(1, 'return name();');
parameters.fileWriter.writeLine(2, 'return name();');
parameters.fileWriter.writeLine(1, '}');

parameters.fileWriter.writeLine(0, '}' );
Expand Down
16 changes: 8 additions & 8 deletions test/codegen/__snapshots__/codegen.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -975,7 +975,7 @@ public enum State {
CA,
@Override
public String toString() {
return name();
return name();
}
}
",
Expand All @@ -996,7 +996,7 @@ public enum TShirtSizeType {
LARGE,
@Override
public String toString() {
return name();
return name();
}
}
",
Expand Down Expand Up @@ -1151,7 +1151,7 @@ public enum Department {
Design,
@Override
public String toString() {
return name();
return name();
}
}
",
Expand Down Expand Up @@ -1210,7 +1210,7 @@ public enum LaptopMake {
Microsoft,
@Override
public String toString() {
return name();
return name();
}
}
",
Expand Down Expand Up @@ -7109,7 +7109,7 @@ public enum State {
CA,
@Override
public String toString() {
return name();
return name();
}
}
",
Expand All @@ -7130,7 +7130,7 @@ public enum TShirtSizeType {
LARGE,
@Override
public String toString() {
return name();
return name();
}
}
",
Expand Down Expand Up @@ -7285,7 +7285,7 @@ public enum Department {
Design,
@Override
public String toString() {
return name();
return name();
}
}
",
Expand Down Expand Up @@ -7344,7 +7344,7 @@ public enum LaptopMake {
Microsoft,
@Override
public String toString() {
return name();
return name();
}
}
",
Expand Down

0 comments on commit 4a8bc8a

Please sign in to comment.