@@ -33,7 +33,6 @@ public boolean isBodyMethodParam() {
3333
3434 @ Override
3535 public String bodyAsClass (UType type ) {
36-
3736 if ("java.io.InputStream" .equals (type .full ())) {
3837 return "ctx.bodyAsInputStream()" ;
3938 } else if ("java.lang.String" .equals (type .full ())) {
@@ -64,28 +63,27 @@ public static String writeJsonbType(UType type) {
6463 writeType (type .paramRaw (), writer );
6564 writer .append (".map()" );
6665 break ;
67- default :
68- {
69- if (type .mainType ().contains ("java.util" )) {
70- throw new UnsupportedOperationException (
71- "Only java.util Map, Set and List are supported JsonB Controller Collection Types" );
72- }
73- writeType (type , writer );
66+ default : {
67+ if (type .mainType ().contains ("java.util" )) {
68+ throw new UnsupportedOperationException (
69+ "Only java.util Map, Set and List are supported JsonB Controller Collection Types" );
7470 }
71+ writeType (type , writer );
72+ }
7573 }
7674 return writer .toString ();
7775 }
7876
7977 static void writeType (UType type , StringBuilder writer ) {
8078 final var params =
81- type .params ().stream ()
82- .map (Util ::shortName )
83- .map (s -> "?" .equals (s ) ? "Object" : s )
84- .collect (Collectors .joining (".class, " ));
79+ type .params ().stream ()
80+ .map (Util ::shortName )
81+ .map (s -> "?" .equals (s ) ? "Object" : s )
82+ .collect (Collectors .joining (".class, " ));
8583
8684 writer .append (
87- "Types.newParameterizedType(%s.class, %s.class)"
88- .formatted (Util .shortName (type .mainType ()), params ));
85+ "Types.newParameterizedType(%s.class, %s.class)"
86+ .formatted (Util .shortName (type .mainType ()), params ));
8987 }
9088
9189 @ Override
0 commit comments