@@ -68,7 +68,7 @@ public Integer call() throws Exception {
68
68
if (!quietMixin .quiet ) {
69
69
printStats (stats );
70
70
}
71
- return 0 ;
71
+ return ( Integer ) 0 ;
72
72
}
73
73
}
74
74
@@ -103,7 +103,7 @@ static class Sync implements Callable<Integer> {
103
103
public Integer call () throws Exception {
104
104
if (interactive || artifactPattern == null || artifactPattern .isEmpty ()) {
105
105
if (max == null ) {
106
- max = 100 ;
106
+ max = ( Integer ) 100 ;
107
107
}
108
108
try (Terminal terminal = TerminalBuilder .builder ().build ()) {
109
109
while (true ) {
@@ -154,14 +154,14 @@ public Integer call() throws Exception {
154
154
}
155
155
} else {
156
156
if (max == null ) {
157
- max = 20 ;
157
+ max = ( Integer ) 20 ;
158
158
}
159
159
String [] artifactNames = search (artifactPattern );
160
160
if (artifactNames .length > 0 ) {
161
161
Arrays .stream (artifactNames ).forEach (System .out ::println );
162
162
}
163
163
}
164
- return 0 ;
164
+ return ( Integer ) 0 ;
165
165
}
166
166
167
167
String [] search (String artifactPattern ) throws IOException {
@@ -255,7 +255,7 @@ public Integer call() throws Exception {
255
255
if (!quietMixin .quiet ) {
256
256
printStats (stats );
257
257
}
258
- return 0 ;
258
+ return ( Integer ) 0 ;
259
259
}
260
260
}
261
261
@@ -284,7 +284,7 @@ public Integer call() throws Exception {
284
284
.collect (Collectors .joining (File .pathSeparator ));
285
285
System .out .print (classpath );
286
286
}
287
- return 0 ;
287
+ return ( Integer ) 0 ;
288
288
}
289
289
}
290
290
@@ -333,9 +333,8 @@ static class QuietMixin {
333
333
}
334
334
335
335
private static void printStats (SyncStats stats ) {
336
- System .err .printf (
337
- "Artifacts new: %d, updated: %d, deleted: %d%n" ,
338
- stats .copied , stats .updated , stats .deleted );
336
+ System .err .printf ("Artifacts new: %d, updated: %d, deleted: %d%n" ,
337
+ (Integer )stats .copied , (Integer )stats .updated , (Integer )stats .deleted );
339
338
}
340
339
341
340
/**
0 commit comments