@@ -33,26 +33,25 @@ static void writeAdapterWithValues(
33
33
34
34
if (!typeUse1 .isEmpty ()
35
35
&& (isAssignable2Interface (genericType .topType (), "java.lang.Iterable" ))) {
36
- writer .eol (). append ("%s .list()" , indent );
36
+ writer .append ("%s .list()" , indent );
37
37
final var t = genericType .firstParamType ();
38
38
writeTypeUse (writer , indent , t , typeUse1 , genericType );
39
39
40
40
} else if ((!typeUse1 .isEmpty () || !typeUse2 .isEmpty ())
41
41
&& "java.util.Map" .equals (genericType .topType ())) {
42
42
43
- writer .eol (). append ("%s .mapKeys()" , indent );
43
+ writer .append ("%s .mapKeys()" , indent );
44
44
writeTypeUse (writer , indent , genericType .firstParamType (), typeUse1 , genericType );
45
45
46
- writer .eol (). append ("%s .mapValues()" , indent );
46
+ writer .append ("%s .mapValues()" , indent );
47
47
writeTypeUse (writer , indent , genericType .secondParamType (), typeUse2 , false , genericType );
48
48
49
49
} else if (genericType .topType ().contains ("[]" ) && hasValid ) {
50
50
51
- writer .eol (). append ("%s .array()" , indent );
51
+ writer .append ("%s .array()" , indent );
52
52
writeTypeUse (writer , indent , genericType .firstParamType (), typeUse1 , genericType );
53
53
} else if (hasValid ) {
54
54
writer
55
- .eol ()
56
55
.append (
57
56
"%s .andThen(ctx.adapter(%s.class))" ,
58
57
indent , Util .shortName (genericType .topType ()));
@@ -85,7 +84,7 @@ private static void writeTypeUse(
85
84
}
86
85
final var k = a .getKey ().shortName ();
87
86
final var v = a .getValue ();
88
- writer .eol (). append ("%s .andThenMulti(ctx.adapter(%s.class,%s))" , indent , k , v );
87
+ writer .append ("%s .andThenMulti(ctx.adapter(%s.class,%s))" , indent , k , v );
89
88
}
90
89
91
90
if (!Util .isBasicType (paramType )
@@ -94,7 +93,6 @@ private static void writeTypeUse(
94
93
.anyMatch (Constants .VALID_ANNOTATIONS ::contains )) {
95
94
96
95
writer
97
- .eol ()
98
96
.append (
99
97
"%s .andThenMulti(ctx.adapter(%s.class))" ,
100
98
indent ,
0 commit comments