< prev index next >

src/java.management/share/classes/sun/management/MappedMXBeanType.java

Print this page
rev 52881 : 8214971: Replace use of string.equals("") with isEmpty()
Reviewed-by: jlaskey, prappo, lancea, dfuchs, redestad

@@ -661,11 +661,11 @@
                     } else {
                         // ignore non-getter methods
                         continue;
                     }
 
-                    if (rest.equals("") ||
+                    if (rest.isEmpty() ||
                         method.getParameterTypes().length > 0 ||
                         type == void.class ||
                         rest.equals("Class")) {
 
                         // ignore non-getter methods
< prev index next >