src/java.management/share/classes/javax/management/modelmbean/ModelMBeanInfoSupport.java
--- a/src/java.management/share/classes/javax/management/modelmbean/ModelMBeanInfoSupport.java Fri Dec 07 17:11:17 2018 +0100
+++ b/src/java.management/share/classes/javax/management/modelmbean/ModelMBeanInfoSupport.java Fri Dec 07 11:51:17 2018 -0500
@@ -367,7 +367,7 @@
MODELMBEAN_LOGGER.log(Level.TRACE, "Entry");
}
- if ((inDescriptorType == null) || (inDescriptorType.equals(""))) {
+ if ((inDescriptorType == null) || (inDescriptorType.isEmpty())) {
inDescriptorType = "all";
}
@@ -600,7 +600,7 @@
inDescriptor = new DescriptorSupport();
}
- if ((inDescriptorType == null) || (inDescriptorType.equals(""))) {
+ if ((inDescriptorType == null) || (inDescriptorType.isEmpty())) {
inDescriptorType =
(String) inDescriptor.getFieldValue("descriptorType");