-
Notifications
You must be signed in to change notification settings - Fork 135
Open
Description
What happened?
If String#replace(String,String) is ever called with two Strings each of length 1, then this can be replaced with the String#replace(char, char) overload that is a bit more efficient. Similarly replaceAll(String,String) takes a regex for the first String, and for simple single-char matching regexes like .replaceAll("/", ".") this can be rewritten as replace('/', '.')
What did you want to happen?
I'd like to get an auto-apply suggestion from gradle-baseline for changes like this.
See Palantir-internal gradle-plugins/conjure-backcompat/pull/1712
cc @schlosna
schlosna
Metadata
Metadata
Assignees
Labels
No labels