/** * Gets the comparator for equality matching. * * @param attrId the attribute identifier * @return the comparator for equality matching * @throws javax.naming.NamingException if there is a failure */ private Comparator getComparator( String attrId ) throws NamingException { MatchingRule mrule = getMatchingRule( attrId, EQUALITY_MATCH ); return mrule.getComparator(); }
/** * Gets the comparator for equality matching. * * @param attrId the attribute identifier * @return the comparator for equality matching * @throws NamingException if there is a failure */ private Comparator getComparator( String attrId ) throws NamingException { MatchingRule mrule = getMatchingRule( attrId, EQUALITY_MATCH ); if ( mrule == null ) { return ByteArrayComparator.INSTANCE; } return mrule.getComparator(); }
if ( mr.getComparator() == null )