directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1418877 - /directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/SchemaUtils.java
Date Sun, 09 Dec 2012 10:10:10 GMT
Author: elecharny
Date: Sun Dec  9 10:10:09 2012
New Revision: 1418877

URL: http://svn.apache.org/viewvc?rev=1418877&view=rev
Log:
Used a char instead of a String in a indexOf() call

Modified:
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/SchemaUtils.java

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/SchemaUtils.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/SchemaUtils.java?rev=1418877&r1=1418876&r2=1418877&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/SchemaUtils.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/SchemaUtils.java
Sun Dec  9 10:10:09 2012
@@ -1121,7 +1121,7 @@ public final class SchemaUtils
      */
     public static String stripOptions( String attributeId )
     {
-        int optionsPos = attributeId.indexOf( ";" );
+        int optionsPos = attributeId.indexOf( ';' );
 
         if ( optionsPos != -1 )
         {
@@ -1144,7 +1144,7 @@ public final class SchemaUtils
      */
     public static Set<String> getOptions( String attributeId )
     {
-        int optionsPos = attributeId.indexOf( ";" );
+        int optionsPos = attributeId.indexOf( ';' );
 
         if ( optionsPos != -1 )
         {



Mime
View raw message