src/java.management/share/classes/javax/management/openmbean/OpenMBeanConstructorInfoSupport.java
changeset 52902 e3398b2e1ab0
parent 47216 71c04702a3d5
--- a/src/java.management/share/classes/javax/management/openmbean/OpenMBeanConstructorInfoSupport.java	Fri Dec 07 17:11:17 2018 +0100
+++ b/src/java.management/share/classes/javax/management/openmbean/OpenMBeanConstructorInfoSupport.java	Fri Dec 07 11:51:17 2018 -0500
@@ -124,11 +124,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");
         }