src/java.management/share/classes/javax/management/modelmbean/ModelMBeanInfoSupport.java
changeset 52902 e3398b2e1ab0
parent 47216 71c04702a3d5
--- 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");