@@ -247,13 +247,13 @@ public class WidgetController$Route implements HttpService {
247247
248248
249249 private final WidgetController controller;
250- private final JsonType<org.example.hello. WidgetController . Widget > getByIdReturnedJsonType ;
251- private final JsonType<java.util.List<org.example.hello. WidgetController . Widget > > getAllReturnedJsonType ;
250+ private final JsonType<org.example.hello. WidgetController . Widget > widgetJsonType ;
251+ private final JsonType<java.util.List<org.example.hello. WidgetController . Widget > > listWidgetJsonType ;
252252
253253 public WidgetController$Route (WidgetController controller , Jsonb jsonB ) {
254254 this . controller = controller;
255- this . getByIdReturnedJsonType = jsonB. type(org.example.hello. WidgetController . Widget . class);
256- this . getAllReturnedJsonType = jsonB. type(org.example.hello. WidgetController . Widget . class). list();
255+ this . widgetJsonType = jsonB. type(org.example.hello. WidgetController . Widget . class);
256+ this . listWidgetJsonType = jsonB. type(org.example.hello. WidgetController . Widget . class). list();
257257 }
258258
259259 @Override
@@ -267,14 +267,14 @@ public class WidgetController$Route implements HttpService {
267267 int id = asInt(pathParams. first(" id" ). get());
268268 var result = controller. getById(id);
269269 res. headers(). contentType(io.helidon.common.http. HttpMediaType . APPLICATION_JSON );
270- getByIdReturnedJsonType . toJson(result, res. outputStream());
270+ widgetJsonType . toJson(result, res. outputStream());
271271 }
272272
273273 private void _getAll (ServerRequest req , ServerResponse res ) {
274274 var pathParams = req. path(). pathParameters();
275275 var result = controller. getAll();
276276 res. headers(). contentType(io.helidon.common.http. HttpMediaType . APPLICATION_JSON );
277- getAllReturnedJsonType . toJson(result, res. outputStream());
277+ listWidgetJsonType . toJson(result, res. outputStream());
278278 }
279279
280280}
0 commit comments