Skip to content

jooby-apt: turn off Route.setReturnType by default and mark as deprecated #3529

@jknack

Description

@jknack

Given:

public class Controller1292 {
  @GET
  public String response() {
    return "mvc";
  }
}

Generates:

      /** See {@link Controller1292#response() */
      app.get("/", this::response)
        .setReturnType(String.class)
        .setMvcMethod(Controller1292.class.getMethod("response"));

These two option are now controlled by processor options: jooby.mvcMethod and jooby.returnType starting on next release these two options will be off by default (false). So output will be just:

      /** See {@link Controller1292#response() */
      app.get("/", this::response);

/cc @agentgt @kliushnichenko

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions