File tree Expand file tree Collapse file tree 4 files changed +14
-11
lines changed
http-generator-client/src/main/java/io/avaje/http/generator/client
http-generator-javalin/src/main/java/io/avaje/http/generator/javalin
http-generator-nima/src/main/java/io/avaje/http/generator/helidon/nima Expand file tree Collapse file tree 4 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ private void writeResponse(UType type) {
139
139
} else if (isHttpResponse (mainType )) {
140
140
writeWithHandler ();
141
141
} else {
142
- writer .append (".bean(" ). eol () ;
142
+ writer .append (".bean(" );
143
143
writeGeneric (type );
144
144
}
145
145
}
Original file line number Diff line number Diff line change @@ -27,15 +27,16 @@ public class ClientProcessor extends AbstractProcessor {
27
27
28
28
protected ProcessingContext ctx ;
29
29
30
- private boolean useJsonB ;
30
+ private final boolean useJsonB ;
31
31
32
32
public ClientProcessor () {
33
+ var jsonBOnClassPath = false ;
33
34
try {
34
35
Class .forName ("io.avaje.jsonb.Jsonb" );
35
- this . useJsonB = true ;
36
+ jsonBOnClassPath = true ;
36
37
} catch (final ClassNotFoundException e ) {
37
- this .useJsonB = false ;
38
38
}
39
+ useJsonB = jsonBOnClassPath ;
39
40
}
40
41
41
42
public ClientProcessor (boolean useJsonb ) {
@@ -122,7 +123,7 @@ private void writeClient(Element controller) {
122
123
}
123
124
124
125
protected String writeClientAdapter (ProcessingContext ctx , ControllerReader reader ) throws IOException {
125
- return new ClientWriter (reader , ctx ,useJsonB ).write ();
126
+ return new ClientWriter (reader , ctx , useJsonB ).write ();
126
127
}
127
128
128
129
}
Original file line number Diff line number Diff line change 9
9
10
10
public class JavalinProcessor extends BaseProcessor {
11
11
12
- private boolean useJsonB ;
12
+ private final boolean useJsonB ;
13
13
14
14
public JavalinProcessor () {
15
+ var jsonBOnClassPath = false ;
15
16
try {
16
17
Class .forName ("io.avaje.jsonb.Jsonb" );
17
- this . useJsonB = true ;
18
+ jsonBOnClassPath = true ;
18
19
} catch (final ClassNotFoundException e ) {
19
- this .useJsonB = false ;
20
20
}
21
+ useJsonB = jsonBOnClassPath ;
21
22
}
22
23
23
24
public JavalinProcessor (boolean useJsonb ) {
Original file line number Diff line number Diff line change 9
9
10
10
public class NimaProcessor extends BaseProcessor {
11
11
12
- private boolean jsonB ;
12
+ private final boolean jsonB ;
13
13
14
14
public NimaProcessor () {
15
+ var jsonBOnClassPath = false ;
15
16
try {
16
17
Class .forName ("io.avaje.jsonb.Jsonb" );
17
- this . jsonB = true ;
18
+ jsonBOnClassPath = true ;
18
19
} catch (final ClassNotFoundException e ) {
19
- this .jsonB = false ;
20
20
}
21
+ jsonB = jsonBOnClassPath ;
21
22
}
22
23
23
24
public NimaProcessor (boolean useJsonb ) {
You can’t perform that action at this time.
0 commit comments