Skip to content

Deprecate replace and contains methods #362

@elharo

Description

@elharo

New feature, improvement proposal

replace(String text, String repl, String with) text.replace(repl, with) Since Java 1.5. String.replace replaces all occurrences (despite the name not being replaceAll, which implies Regex).
replace(String text, char repl, char with) text.replace(repl, with) Since Java 1.5. Replaces all occurrences of the char.
contains(String str, String searchStr) str.contains(searchStr) Since Java 1.5.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions