Call to suspicious 'String' method
Reports calls of:
equals()
equalsIgnoreCase()
compareTo()
compareToIgnoreCase()
andtrim()
on String
objects. Comparison of internationalized strings should probably use a java.text.Collator
instead. String.trim()
only removes control characters between 0x00 and 0x20. The String.strip()
method introduced in Java 11 is more Unicode aware and can be used as a replacement.
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Java, 233.SNAPSHOT |
Last modified: 13 July 2023