< prev index next >
src/java.management/share/classes/javax/management/modelmbean/ModelMBeanInfoSupport.java
Print this page
rev 52881 : 8214971: Replace use of string.equals("") with isEmpty()
*** 365,375 ****
throws MBeanException, RuntimeOperationsException {
if (MODELMBEAN_LOGGER.isLoggable(Level.TRACE)) {
MODELMBEAN_LOGGER.log(Level.TRACE, "Entry");
}
! if ((inDescriptorType == null) || (inDescriptorType.equals(""))) {
inDescriptorType = "all";
}
// if no descriptors of that type, will return empty array
//
--- 365,375 ----
throws MBeanException, RuntimeOperationsException {
if (MODELMBEAN_LOGGER.isLoggable(Level.TRACE)) {
MODELMBEAN_LOGGER.log(Level.TRACE, "Entry");
}
! if ((inDescriptorType == null) || (inDescriptorType.isEmpty())) {
inDescriptorType = "all";
}
// if no descriptors of that type, will return empty array
//
*** 598,608 ****
if (inDescriptor==null) {
inDescriptor = new DescriptorSupport();
}
! if ((inDescriptorType == null) || (inDescriptorType.equals(""))) {
inDescriptorType =
(String) inDescriptor.getFieldValue("descriptorType");
if (inDescriptorType == null) {
MODELMBEAN_LOGGER.log(Level.TRACE,
--- 598,608 ----
if (inDescriptor==null) {
inDescriptor = new DescriptorSupport();
}
! if ((inDescriptorType == null) || (inDescriptorType.isEmpty())) {
inDescriptorType =
(String) inDescriptor.getFieldValue("descriptorType");
if (inDescriptorType == null) {
MODELMBEAN_LOGGER.log(Level.TRACE,
< prev index next >