directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r345878 - /directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/name/SimpleNameComponentNormalizer.java
Date Mon, 21 Nov 2005 09:14:57 GMT
Author: elecharny
Date: Mon Nov 21 01:14:52 2005
New Revision: 345878

URL: http://svn.apache.org/viewcvs?rev=345878&view=rev
Log:
Changed the toString() to a (String) cast (2x faster)

Modified:
    directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/name/SimpleNameComponentNormalizer.java

Modified: directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/name/SimpleNameComponentNormalizer.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/name/SimpleNameComponentNormalizer.java?rev=345878&r1=345877&r2=345878&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/name/SimpleNameComponentNormalizer.java
(original)
+++ directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/name/SimpleNameComponentNormalizer.java
Mon Nov 21 01:14:52 2005
@@ -50,22 +50,22 @@
 
     public String normalizeByName( String name, String val ) throws NamingException
     {
-        return normalizer.normalize( val ).toString();
+        return (String)normalizer.normalize( val );
     }
 
     public String normalizeByName( String name, byte[] val ) throws NamingException
     {
-        return normalizer.normalize( val ).toString();
+        return (String)normalizer.normalize( val );
     }
 
     public String normalizeByOid( String oid, String val ) throws NamingException
     {
-        return normalizer.normalize( val ).toString();
+        return (String)normalizer.normalize( val );
     }
 
     public String normalizeByOid( String oid, byte[] val ) throws NamingException
     {
-        return normalizer.normalize( val ).toString();
+        return (String)normalizer.normalize( val );
     }
 
     public boolean isDefined( String oid )



Mime
View raw message