Open
Description
What problem are you trying to solve?
Just came across this finding from IntelliJ:
String upperFoo = "FoO"
"foo".equals(upperFoo.toLowercase())
can be
String upperFoo = "FoO"
"foo".equalsToIgnoreCase(upperFoo)
Condition: the first string is all lowercase
Would be nice to have that automated.
I've considered posting this in rewrite-migrate-java, but as there is no "since" in the API I guess it has been around forever and was never a new language feature.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Recipes Wanted