--- old/src/java.management/share/classes/javax/management/openmbean/OpenMBeanOperationInfoSupport.java 2018-12-06 14:53:22.059969065 -0500 +++ new/src/java.management/share/classes/javax/management/openmbean/OpenMBeanOperationInfoSupport.java 2018-12-06 14:53:21.887968212 -0500 @@ -163,11 +163,11 @@ // check parameters that should not be null or empty // (unfortunately it is not done in superclass :-( ! ) // - if (name == null || name.trim().equals("")) { + if (name == null || name.trim().isEmpty()) { throw new IllegalArgumentException("Argument name cannot " + "be null or empty"); } - if (description == null || description.trim().equals("")) { + if (description == null || description.trim().isEmpty()) { throw new IllegalArgumentException("Argument description cannot " + "be null or empty"); }