jdk/src/share/classes/com/sun/jndi/toolkit/dir/SearchFilter.java
changeset 25187 08aff438def8
parent 24969 afa6934dd8e8
child 25808 e113d0a0fde0
equal deleted inserted replaced
25186:63e1a2ec30f5 25187:08aff438def8
   377         }
   377         }
   378 
   378 
   379         // used for substring comparisons (where proto has "*" wildcards
   379         // used for substring comparisons (where proto has "*" wildcards
   380         private boolean substringMatch(String proto, String value) {
   380         private boolean substringMatch(String proto, String value) {
   381             // simple case 1: "*" means attribute presence is being tested
   381             // simple case 1: "*" means attribute presence is being tested
   382             if(proto.equals(new Character(WILDCARD_TOKEN).toString())) {
   382             if(proto.equals(Character.toString(WILDCARD_TOKEN))) {
   383                 if(debug) {System.out.println("simple presence assertion");}
   383                 if(debug) {System.out.println("simple presence assertion");}
   384                 return true;
   384                 return true;
   385             }
   385             }
   386 
   386 
   387             // simple case 2: if there are no wildcards, call String.equals()
   387             // simple case 2: if there are no wildcards, call String.equals()