< 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,671 ****
} else {
// ignore non-getter methods
continue;
}
! if (rest.equals("") ||
method.getParameterTypes().length > 0 ||
type == void.class ||
rest.equals("Class")) {
// ignore non-getter methods
--- 661,671 ----
} else {
// ignore non-getter methods
continue;
}
! if (rest.isEmpty() ||
method.getParameterTypes().length > 0 ||
type == void.class ||
rest.equals("Class")) {
// ignore non-getter methods
< prev index next >