< 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()
Reviewed-by: jlaskey, prappo, lancea, dfuchs, redestad
@@ -365,11 +365,11 @@
throws MBeanException, RuntimeOperationsException {
if (MODELMBEAN_LOGGER.isLoggable(Level.TRACE)) {
MODELMBEAN_LOGGER.log(Level.TRACE, "Entry");
}
- if ((inDescriptorType == null) || (inDescriptorType.equals(""))) {
+ if ((inDescriptorType == null) || (inDescriptorType.isEmpty())) {
inDescriptorType = "all";
}
// if no descriptors of that type, will return empty array
//
@@ -598,11 +598,11 @@
if (inDescriptor==null) {
inDescriptor = new DescriptorSupport();
}
- if ((inDescriptorType == null) || (inDescriptorType.equals(""))) {
+ if ((inDescriptorType == null) || (inDescriptorType.isEmpty())) {
inDescriptorType =
(String) inDescriptor.getFieldValue("descriptorType");
if (inDescriptorType == null) {
MODELMBEAN_LOGGER.log(Level.TRACE,
< prev index next >