File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
http-generator-client/src/main/java/io/avaje/http/generator/client Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -33,8 +33,13 @@ class ClientMethodWriter {
3333
3434 void addImportTypes (ControllerReader reader ) {
3535 reader .addImportTypes (returnType .importTypes ());
36- for (MethodParam param : method .params ()) {
37- param .addImports (reader );
36+ for (final MethodParam param : method .params ()) {
37+ final var type = param .utype ();
38+ final var type0 = type .param0 ();
39+ final var type1 = type .param1 ();
40+ reader .addImportType (type .mainType ().replace ("[]" , "" ));
41+ if (type0 != null ) reader .addImportType (type0 .replace ("[]" , "" ));
42+ if (type1 != null ) reader .addImportType (type1 .replace ("[]" , "" ));
3843 }
3944 }
4045
@@ -263,4 +268,4 @@ private boolean isHttpResponse(String type0) {
263268 return type0 .equals ("java.net.http.HttpResponse" );
264269 }
265270
266- }
271+ }
You can’t perform that action at this time.
0 commit comments