Skip to content

Commit 18a497a

Browse files
committed
Fix spacing to 2 spaces in generated source
1 parent 31a2ec6 commit 18a497a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

generator-helidon/src/main/java/io/dinject/webroutegen/ControllerWriter.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ private void writeClassStart() {
6969
controllerName = "factory";
7070
controllerType += "$factory";
7171
}
72-
writer.append(" private final %s %s;", controllerType, controllerName).eol();
72+
writer.append(" private final %s %s;", controllerType, controllerName).eol();
7373
if (reader.isIncludeValidator()) {
74-
writer.append(" private final Validator validator;").eol();
74+
writer.append(" private final Validator validator;").eol();
7575
}
7676
writer.eol();
7777

78-
writer.append(" public %s$route(%s %s", shortName, controllerType, controllerName);
78+
writer.append(" public %s$route(%s %s", shortName, controllerType, controllerName);
7979
if (reader.isIncludeValidator()) {
8080
writer.append(", Validator validator");
8181
}
@@ -84,7 +84,7 @@ private void writeClassStart() {
8484
if (reader.isIncludeValidator()) {
8585
writer.append(" this.validator = validator;").eol();
8686
}
87-
writer.append(" }").eol().eol();
87+
writer.append(" }").eol().eol();
8888
}
8989

9090
}

generator-javalin/src/main/java/io/dinject/webroutegen/ControllerWriter.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ private void writeClassStart() {
5454
controllerName = "factory";
5555
controllerType += "$factory";
5656
}
57-
writer.append(" private final %s %s;", controllerType, controllerName).eol();
57+
writer.append(" private final %s %s;", controllerType, controllerName).eol();
5858

5959
if (reader.isIncludeValidator()) {
60-
writer.append(" private final Validator validator;").eol();
60+
writer.append(" private final Validator validator;").eol();
6161
}
6262
writer.eol();
6363

64-
writer.append(" public %s$route(%s %s", shortName, controllerType, controllerName);
64+
writer.append(" public %s$route(%s %s", shortName, controllerType, controllerName);
6565
if (reader.isIncludeValidator()) {
6666
writer.append(", Validator validator");
6767
}
@@ -70,7 +70,7 @@ private void writeClassStart() {
7070
if (reader.isIncludeValidator()) {
7171
writer.append(" this.validator = validator;").eol();
7272
}
73-
writer.append(" }").eol().eol();
73+
writer.append(" }").eol().eol();
7474
}
7575

7676
}

0 commit comments

Comments
 (0)