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 8b3721e commit af80b5eCopy full SHA for af80b5e
src/main/java/org/codehaus/plexus/util/StringUtils.java
@@ -158,7 +158,7 @@ public static String deleteWhitespace( String str )
158
*/
159
public static boolean isNotEmpty( String str )
160
{
161
- return ( ( str != null ) && ( str.length() > 0 ) );
+ return ( ( str != null ) && ( !str.isEmpty() ) );
162
}
163
164
/**
@@ -174,7 +174,7 @@ public static boolean isNotEmpty( String str )
174
175
public static boolean isEmpty( String str )
176
177
- return ( ( str == null ) || ( str.trim().length() == 0 ) );
+ return ( ( str == null ) || ( str.trim().isEmpty() ) );
178
179
180
0 commit comments