Skip to content

(JAVA-P1004) Calling String.indexOf() with a single character string is inefficient #13

@VerisimilitudeX

Description

@VerisimilitudeX

Description

This code passes a single character string, or an empty string to String.indexOf(). Doing so is useless at best, and is also more inefficient than passing a character directly.

Occurrences

There are 5 occurrences of this issue in the repository.

See all occurrences on DeepSource → app.deepsource.com/gh/VerisimilitudeX/quickfilters/issue/JAVA-P1004/occurrences/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions