directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r491289 - /directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/name/RdnParser.java
Date Sat, 30 Dec 2006 18:41:04 GMT
Author: elecharny
Date: Sat Dec 30 10:41:03 2006
New Revision: 491289

URL: http://svn.apache.org/viewvc?view=rev&rev=491289
Log:
Call the new method StringTools.getHexValue( char )

Modified:
    directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/name/RdnParser.java

Modified: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/name/RdnParser.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/name/RdnParser.java?view=diff&rev=491289&r1=491288&r2=491289
==============================================================================
--- directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/name/RdnParser.java
(original)
+++ directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/name/RdnParser.java
Sat Dec 30 10:41:03 2006
@@ -492,8 +492,7 @@
                                 hasPairChar = true;
                             }
 
-                            byte b = ( byte ) ( ( StringTools.HEX_VALUE[string.charAt( pos.end
)] << 4 ) + StringTools.HEX_VALUE[string
-                                .charAt( pos.end + 1 )] );
+                            byte b = StringTools.getHexValue( string.charAt( pos.end ), string.charAt(
pos.end + 1 ) );
 
                             sb.append( (char)(b & 0x00FF) );
                         }



Mime
View raw message