hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r899923 - /httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/HttpHost.java
Date Sat, 16 Jan 2010 12:15:29 GMT
Author: sebb
Date: Sat Jan 16 12:15:29 2010
New Revision: 899923

URL: http://svn.apache.org/viewvc?rev=899923&view=rev
Log:
Document "magic" number

Modified:
    httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/HttpHost.java

Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/HttpHost.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/HttpHost.java?rev=899923&r1=899922&r2=899923&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/HttpHost.java (original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/HttpHost.java Sat
Jan 16 12:15:29 2010
@@ -169,6 +169,7 @@
      */
     public String toHostString() {
         if (this.port != -1) {
+            //the highest port number is 65535, which is length 6 with the addition of the
colon
             CharArrayBuffer buffer = new CharArrayBuffer(this.hostname.length() + 6);
             buffer.append(this.hostname);
             buffer.append(":");



Mime
View raw message