Skip to content

Calling new String("string constant") is an anti-pattern #248

@swpalmer

Description

@swpalmer

This:

should simply be:

String response = "200 OK";

and of course there should be some sort of documentation for how the response is used. It is very odd to see what looks like raw HTTP status codes returned as a string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions