From 4a8bc8aade1bf2638a5b9b1def90dad14355285a Mon Sep 17 00:00:00 2001 From: Subhajit Ghosh Date: Sun, 31 Mar 2024 10:58:18 +0530 Subject: [PATCH] Added some space to the return statement Signed-off-by: Subhajit Ghosh --- lib/codegen/fromcto/java/javavisitor.js | 2 +- test/codegen/__snapshots__/codegen.js.snap | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/codegen/fromcto/java/javavisitor.js b/lib/codegen/fromcto/java/javavisitor.js index 6d4f279d..a7fb0d31 100644 --- a/lib/codegen/fromcto/java/javavisitor.js +++ b/lib/codegen/fromcto/java/javavisitor.js @@ -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, '}' ); diff --git a/test/codegen/__snapshots__/codegen.js.snap b/test/codegen/__snapshots__/codegen.js.snap index ab6e4e8d..abb8a388 100644 --- a/test/codegen/__snapshots__/codegen.js.snap +++ b/test/codegen/__snapshots__/codegen.js.snap @@ -975,7 +975,7 @@ public enum State { CA, @Override public String toString() { - return name(); + return name(); } } ", @@ -996,7 +996,7 @@ public enum TShirtSizeType { LARGE, @Override public String toString() { - return name(); + return name(); } } ", @@ -1151,7 +1151,7 @@ public enum Department { Design, @Override public String toString() { - return name(); + return name(); } } ", @@ -1210,7 +1210,7 @@ public enum LaptopMake { Microsoft, @Override public String toString() { - return name(); + return name(); } } ", @@ -7109,7 +7109,7 @@ public enum State { CA, @Override public String toString() { - return name(); + return name(); } } ", @@ -7130,7 +7130,7 @@ public enum TShirtSizeType { LARGE, @Override public String toString() { - return name(); + return name(); } } ", @@ -7285,7 +7285,7 @@ public enum Department { Design, @Override public String toString() { - return name(); + return name(); } } ", @@ -7344,7 +7344,7 @@ public enum LaptopMake { Microsoft, @Override public String toString() { - return name(); + return name(); } } ",