src/java.base/share/classes/jdk/internal/org/objectweb/asm/util/CheckSignatureAdapter.java
changeset 53018 8bf9268df0e2
parent 52515 746df0ae4fe1
equal deleted inserted replaced
53017:e10a1f7aaa13 53018:8bf9268df0e2
   363             signatureVisitor.visitEnd();
   363             signatureVisitor.visitEnd();
   364         }
   364         }
   365     }
   365     }
   366 
   366 
   367     private void checkClassName(final String name, final String message) {
   367     private void checkClassName(final String name, final String message) {
   368         if (name == null || name.length() == 0) {
   368         if (name == null || name.isEmpty()) {
   369             throw new IllegalArgumentException(INVALID + message + " (must not be null or empty)");
   369             throw new IllegalArgumentException(INVALID + message + " (must not be null or empty)");
   370         }
   370         }
   371         for (int i = 0; i < name.length(); ++i) {
   371         for (int i = 0; i < name.length(); ++i) {
   372             if (".;[<>:".indexOf(name.charAt(i)) != -1) {
   372             if (".;[<>:".indexOf(name.charAt(i)) != -1) {
   373                 throw new IllegalArgumentException(
   373                 throw new IllegalArgumentException(
   375             }
   375             }
   376         }
   376         }
   377     }
   377     }
   378 
   378 
   379     private void checkIdentifier(final String name, final String message) {
   379     private void checkIdentifier(final String name, final String message) {
   380         if (name == null || name.length() == 0) {
   380         if (name == null || name.isEmpty()) {
   381             throw new IllegalArgumentException(INVALID + message + " (must not be null or empty)");
   381             throw new IllegalArgumentException(INVALID + message + " (must not be null or empty)");
   382         }
   382         }
   383         for (int i = 0; i < name.length(); ++i) {
   383         for (int i = 0; i < name.length(); ++i) {
   384             if (".;[/<>:".indexOf(name.charAt(i)) != -1) {
   384             if (".;[/<>:".indexOf(name.charAt(i)) != -1) {
   385                 throw new IllegalArgumentException(
   385                 throw new IllegalArgumentException(