Skip to content
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
@hauner

Description

@hauner

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions