hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1045214 - /httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/params/BasicHttpParams.java
Date Mon, 13 Dec 2010 16:11:12 GMT
Author: sebb
Date: Mon Dec 13 16:11:11 2010
New Revision: 1045214

URL: http://svn.apache.org/viewvc?rev=1045214&view=rev
Log:
Change Javadoc to agree with current implementation

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

Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/params/BasicHttpParams.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/params/BasicHttpParams.java?rev=1045214&r1=1045213&r2=1045214&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/params/BasicHttpParams.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/params/BasicHttpParams.java
Mon Dec 13 16:11:11 2010
@@ -122,13 +122,13 @@ public class BasicHttpParams extends Abs
 
     /**
      * Creates a copy of these parameters.
-     * The implementation here instantiates {@link BasicHttpParams},
-     * then calls {@link #copyParams(HttpParams)} to populate the copy.
+     * This implementation calls {@link #clone()}.
      *
      * @return  a new set of params holding a copy of the
      *          <i>local</i> parameters in this object.
      *
      * @deprecated
+     * @throws UnsupportedOperationException if the clone() fails
      */
     public HttpParams copy() {
         try {
@@ -138,6 +138,10 @@ public class BasicHttpParams extends Abs
         }
     }
 
+    /**
+     * Clones the instance.
+     * Uses {@link #copyParams(HttpParams)} to copy the parameters.
+     */
     public Object clone() throws CloneNotSupportedException {
         BasicHttpParams clone = (BasicHttpParams) super.clone();
         copyParams(clone);
@@ -146,7 +150,7 @@ public class BasicHttpParams extends Abs
 
     /**
      * Copies the locally defined parameters to the argument parameters.
-     * This method is called from {@link #copy()}.
+     * This method is called from {@link #clone()}.
      *
      * @param target    the parameters to which to copy
      */



Mime
View raw message