This repository was archived by the owner on Mar 16, 2025. It is now read-only.
This repository was archived by the owner on Mar 16, 2025. It is now read-only.
parse "?" generic parameter to an explicit object instead of an empty list #30
Closed
Description
passing a HttpRequest
to a (Micronaut) controller without providing a body type uses a parameter like this (in kotlin):
request: HttpRequest<*>
the mapping to add the parameter is:
map:
paths:
/foo:
parameters:
- add: request => io.micronaut.http.HttpRequest<?>
Currently this translates to an empty generic parameter list, i.e. the generated java parameter is just
void foo(HttpRequest request);
this shows a warning in IDEA: Raw use of parameterized class 'HttpRequest'
The kotlin implementation can implement it as
override fun foo(request: HttpRequest<*>)
but it would be nice to generate the java endpoint with generic parameter to remove the warning
void foo(HttpRequest<?> request);