directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r491693 - /directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/util/LdapURL.java
Date Mon, 01 Jan 2007 23:23:09 GMT
Author: elecharny
Date: Mon Jan  1 15:23:08 2007
New Revision: 491693

URL: http://svn.apache.org/viewvc?view=rev&rev=491693
Log:
Removed useless new String( String )

Modified:
    directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/util/LdapURL.java

Modified: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/util/LdapURL.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/util/LdapURL.java?view=diff&rev=491693&r1=491692&r2=491693
==============================================================================
--- directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/util/LdapURL.java
(original)
+++ directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/util/LdapURL.java
Mon Jan  1 15:23:08 2007
@@ -70,7 +70,7 @@
     // -----------------------------------------------------------------
 
     /** A null LdapURL */
-    public static final transient LdapURL EMPTY_URL = new LdapURL();
+    public static final LdapURL EMPTY_URL = new LdapURL();
 
     /** The filter parser */
     private static FilterParserImpl filterParser = new FilterParserImpl();
@@ -1085,7 +1085,7 @@
                     }
 
                     // An optionnal value
-                    extension = new String( decode( new String( chars, start, i - start )
) ).trim();
+                    extension = decode( new String( chars, start, i - start ) ).trim();
 
                     if ( extension.length() == 0 )
                     {
@@ -1115,11 +1115,11 @@
 
             if ( extension == null )
             {
-                extension = new String( decode( new String( chars, start, chars.length -
start ) ) ).trim();
+                extension = decode( new String( chars, start, chars.length - start ) ).trim();
             }
             else
             {
-                value = new String( decode( new String( chars, start, chars.length - start
) ) ).trim();
+                value = decode( new String( chars, start, chars.length - start ) ).trim();
             }
 
             if ( isCritical )



Mime
View raw message