directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1697297 - /directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/normalizers/ConcreteNameComponentNormalizer.java
Date Mon, 24 Aug 2015 02:28:15 GMT
Author: elecharny
Date: Mon Aug 24 02:28:15 2015
New Revision: 1697297

URL: http://svn.apache.org/r1697297
Log:
Added the missing 'break' in the unescape method switch

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

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/normalizers/ConcreteNameComponentNormalizer.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/normalizers/ConcreteNameComponentNormalizer.java?rev=1697297&r1=1697296&r2=1697297&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/normalizers/ConcreteNameComponentNormalizer.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/normalizers/ConcreteNameComponentNormalizer.java
Mon Aug 24 02:28:15 2015
@@ -71,8 +71,10 @@ public class ConcreteNameComponentNormal
         char low = 0;
         int pos = 0;
 
-        for ( char c : value.toCharArray() )
+        for ( int index = 0; index < value.length(); index++  )
         {
+            char c = value.charAt( index );
+            
             switch ( escaped )
             {
                 case 0:
@@ -96,6 +98,7 @@ public class ConcreteNameComponentNormal
                     escaped = 0;
                     low = c;
                     newVal[pos++] = ( char ) Hex.getHexValue( high, low );
+                    break;
 
                 default:
                     throw new IllegalStateException( "escaped can never have such a value:
" + value );



Mime
View raw message