You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
What happened?
If
String#replace(String,String)
is ever called with two Strings each of length 1, then this can be replaced with theString#replace(char, char)
overload that is a bit more efficient. SimilarlyreplaceAll(String,String)
takes a regex for the first String, and for simple single-char matching regexes like.replaceAll("/", ".")
this can be rewritten asreplace('/', '.')
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
The text was updated successfully, but these errors were encountered: