Skip to content

Commit 4c361b2

Browse files
committed
Replaced custom code by JRE 7 method
1 parent af80b5e commit 4c361b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/codehaus/plexus/util/StringUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
import java.util.Iterator;
5858
import java.util.Locale;
5959
import java.util.Map;
60+
import java.util.Objects;
6061
import java.util.StringTokenizer;
6162

6263
/**
@@ -250,7 +251,7 @@ public static boolean isNotBlank( String str )
250251
*/
251252
public static boolean equals( String str1, String str2 )
252253
{
253-
return ( str1 == null ? str2 == null : str1.equals( str2 ) );
254+
return Objects.equals( str1, str2 );
254255
}
255256

256257
/**

0 commit comments

Comments
 (0)