src/java.management/share/classes/javax/management/openmbean/OpenMBeanOperationInfoSupport.java
changeset 52902 e3398b2e1ab0
parent 47216 71c04702a3d5
equal deleted inserted replaced
52901:3ba9ff4d4aaf 52902:e3398b2e1ab0
   161                 (returnOpenType==null) ? null :returnOpenType.getDescriptor()));
   161                 (returnOpenType==null) ? null :returnOpenType.getDescriptor()));
   162 
   162 
   163         // check parameters that should not be null or empty
   163         // check parameters that should not be null or empty
   164         // (unfortunately it is not done in superclass :-( ! )
   164         // (unfortunately it is not done in superclass :-( ! )
   165         //
   165         //
   166         if (name == null || name.trim().equals("")) {
   166         if (name == null || name.trim().isEmpty()) {
   167             throw new IllegalArgumentException("Argument name cannot " +
   167             throw new IllegalArgumentException("Argument name cannot " +
   168                                                "be null or empty");
   168                                                "be null or empty");
   169         }
   169         }
   170         if (description == null || description.trim().equals("")) {
   170         if (description == null || description.trim().isEmpty()) {
   171             throw new IllegalArgumentException("Argument description cannot " +
   171             throw new IllegalArgumentException("Argument description cannot " +
   172                                                "be null or empty");
   172                                                "be null or empty");
   173         }
   173         }
   174         if (returnOpenType == null) {
   174         if (returnOpenType == null) {
   175             throw new IllegalArgumentException("Argument returnOpenType " +
   175             throw new IllegalArgumentException("Argument returnOpenType " +