Skip to content

Deprecate replace and contains methods #362

Closed

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.

Activity

  1. changed the title [-]Deprecate replacew and contains methods[/-] [+]Deprecate replace and contains methods[/+] on Feb 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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