--- old/src/java.management/share/classes/javax/management/openmbean/OpenMBeanAttributeInfoSupport.java 2018-12-06 17:26:03.537398378 -0500 +++ new/src/java.management/share/classes/javax/management/openmbean/OpenMBeanAttributeInfoSupport.java 2018-12-06 17:26:03.365397525 -0500 @@ -456,11 +456,11 @@ throw new IllegalArgumentException("OpenType cannot be null"); if (info.getName() == null || - info.getName().trim().equals("")) + info.getName().trim().isEmpty()) throw new IllegalArgumentException("Name cannot be null or empty"); if (info.getDescription() == null || - info.getDescription().trim().equals("")) + info.getDescription().trim().isEmpty()) throw new IllegalArgumentException("Description cannot be null or empty"); // Check and initialize defaultValue