--- old/src/java.management/share/classes/javax/management/modelmbean/ModelMBeanInfoSupport.java 2018-12-06 17:53:11.833472662 -0500 +++ new/src/java.management/share/classes/javax/management/modelmbean/ModelMBeanInfoSupport.java 2018-12-06 17:53:11.665471829 -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");