< prev index next >

src/java.base/share/classes/java/text/PatternEntry.java

Print this page
rev 52979 : 8215281: Use String.isEmpty() when applicable in java.base
Reviewed-by: TBD

@@ -139,11 +139,11 @@
         case UNSET: toAddTo.append('?'); break;
         }
         if (showWhiteSpace)
             toAddTo.append(' ');
         appendQuoted(chars,toAddTo);
-        if (showExtension && extension.length() != 0) {
+        if (showExtension && !extension.isEmpty()) {
             toAddTo.append('/');
             appendQuoted(extension,toAddTo);
         }
     }
 
< prev index next >