Skip to content

Annotate Response constructors with @useResult #493

@mnordine

Description

@mnordine

Without this, you could do:

Response getResponse() {
  if (condition) {
    Response.internalServerError(); // missing return
  }
  return Response.ok('');
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions