directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1622456 - /directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/syntaxCheckers/OidSyntaxChecker.java
Date Thu, 04 Sep 2014 11:05:21 GMT
Author: elecharny
Date: Thu Sep  4 11:05:21 2014
New Revision: 1622456

URL: http://svn.apache.org/r1622456
Log:
Small speedup

Modified:
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/syntaxCheckers/OidSyntaxChecker.java

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/syntaxCheckers/OidSyntaxChecker.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/syntaxCheckers/OidSyntaxChecker.java?rev=1622456&r1=1622455&r2=1622456&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/syntaxCheckers/OidSyntaxChecker.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/syntaxCheckers/OidSyntaxChecker.java
Thu Sep  4 11:05:21 2014
@@ -120,7 +120,9 @@ public class OidSyntaxChecker extends Sy
         {
             for ( int index = 0; index < strValue.length(); index++ )
             {
-                if ( !Chars.isAlphaDigitMinus( strValue, index ) )
+                char c = strValue.charAt( index );
+                
+                if ( !Chars.isAlphaDigitMinus( c ) )
                 {
                     LOG.debug( "Syntax invalid for '{}'", value );
                     return false;



Mime
View raw message