We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af80b5e commit 4c361b2Copy full SHA for 4c361b2
src/main/java/org/codehaus/plexus/util/StringUtils.java
@@ -57,6 +57,7 @@
57
import java.util.Iterator;
58
import java.util.Locale;
59
import java.util.Map;
60
+import java.util.Objects;
61
import java.util.StringTokenizer;
62
63
/**
@@ -250,7 +251,7 @@ public static boolean isNotBlank( String str )
250
251
*/
252
public static boolean equals( String str1, String str2 )
253
{
- return ( str1 == null ? str2 == null : str1.equals( str2 ) );
254
+ return Objects.equals( str1, str2 );
255
}
256
257
0 commit comments