commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r507323 - /jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/URI.java
Date Wed, 14 Feb 2007 00:11:23 GMT
Author: sebb
Date: Tue Feb 13 16:11:22 2007
New Revision: 507323

URL: http://svn.apache.org/viewvc?view=rev&rev=507323
Log:
Remove unnecessary String.toString()

Modified:
    jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/URI.java

Modified: jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/URI.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/URI.java?view=diff&rev=507323&r1=507322&r2=507323
==============================================================================
--- jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/URI.java
(original)
+++ jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/URI.java
Tue Feb 13 16:11:22 2007
@@ -2231,12 +2231,12 @@
             _is_IPv6reference = false;
             // set a registry-based naming authority
             if (escaped) {
-                _authority = original.toString().toCharArray();
+                _authority = original.toCharArray();
                 if (!validate(_authority, reg_name)) {
                     throw new URIException("Invalid authority");
                 }
             } else {
-                _authority = encode(original.toString(), allowed_reg_name, charset);
+                _authority = encode(original, allowed_reg_name, charset);
             }
         } else {
             if (original.length() - 1 > next && hasPort 



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message