< prev index next >

src/java.management/share/classes/javax/management/openmbean/OpenMBeanOperationInfoSupport.java

Print this page
rev 52881 : 8214971: Replace use of string.equals("") with isEmpty()
Reviewed-by: jlaskey, prappo, lancea, dfuchs, redestad

*** 161,175 **** (returnOpenType==null) ? null :returnOpenType.getDescriptor())); // check parameters that should not be null or empty // (unfortunately it is not done in superclass :-( ! ) // ! if (name == null || name.trim().equals("")) { throw new IllegalArgumentException("Argument name cannot " + "be null or empty"); } ! if (description == null || description.trim().equals("")) { throw new IllegalArgumentException("Argument description cannot " + "be null or empty"); } if (returnOpenType == null) { throw new IllegalArgumentException("Argument returnOpenType " + --- 161,175 ---- (returnOpenType==null) ? null :returnOpenType.getDescriptor())); // check parameters that should not be null or empty // (unfortunately it is not done in superclass :-( ! ) // ! if (name == null || name.trim().isEmpty()) { throw new IllegalArgumentException("Argument name cannot " + "be null or empty"); } ! if (description == null || description.trim().isEmpty()) { throw new IllegalArgumentException("Argument description cannot " + "be null or empty"); } if (returnOpenType == null) { throw new IllegalArgumentException("Argument returnOpenType " +
< prev index next >