hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r160083 - in jakarta/httpclient/trunk/http-common/src/java/org/apache/http: impl/DefaultHttpParams.java params/HttpParams.java
Date Mon, 04 Apr 2005 18:50:48 GMT
Author: olegk
Date: Mon Apr  4 11:50:48 2005
New Revision: 160083

URL: http://svn.apache.org/viewcvs?view=rev&rev=160083
Log:
Revised #clone method

Modified:
    jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/DefaultHttpParams.java
    jakarta/httpclient/trunk/http-common/src/java/org/apache/http/params/HttpParams.java

Modified: jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/DefaultHttpParams.java
URL: http://svn.apache.org/viewcvs/jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/DefaultHttpParams.java?view=diff&r1=160082&r2=160083
==============================================================================
--- jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/DefaultHttpParams.java
(original)
+++ jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/DefaultHttpParams.java
Mon Apr  4 11:50:48 2005
@@ -199,13 +199,11 @@
      * @see java.io.Serializable
      * @see java.lang.Object#clone()
      */
-    public Object clone() throws CloneNotSupportedException
-    {
-        DefaultHttpParams clone = (DefaultHttpParams)super.clone();
+    public Object clone() {
+        DefaultHttpParams clone = new DefaultHttpParams(this.defaults);
         if (this.parameters != null) {
             clone.parameters = (HashMap)this.parameters.clone(); 
         }
-        clone.setDefaults(this.defaults);
         return clone;
     }
 }

Modified: jakarta/httpclient/trunk/http-common/src/java/org/apache/http/params/HttpParams.java
URL: http://svn.apache.org/viewcvs/jakarta/httpclient/trunk/http-common/src/java/org/apache/http/params/HttpParams.java?view=diff&r1=160082&r2=160083
==============================================================================
--- jakarta/httpclient/trunk/http-common/src/java/org/apache/http/params/HttpParams.java (original)
+++ jakarta/httpclient/trunk/http-common/src/java/org/apache/http/params/HttpParams.java Mon
Apr  4 11:50:48 2005
@@ -234,6 +234,6 @@
      * 
      * @see java.lang.Object#clone()
      */
-    Object clone() throws CloneNotSupportedException;
+    Object clone();
     
 }



Mime
View raw message