hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r618308 - in /httpcomponents/httpclient/trunk/module-client/src: main/java/org/apache/http/cookie/ test/java/org/apache/http/conn/params/
Date Mon, 04 Feb 2008 15:51:20 GMT
Author: olegk
Date: Mon Feb  4 07:51:19 2008
New Revision: 618308

URL: http://svn.apache.org/viewvc?rev=618308&view=rev
Log:
HTTPCLIENT-739: CookieIdentityComparator and CookiePathComparator now implement Serializable

Modified:
    httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/cookie/CookieIdentityComparator.java
    httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/cookie/CookiePathComparator.java
    httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/conn/params/TestAllConnParams.java
    httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/conn/params/TestRouteParams.java

Modified: httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/cookie/CookieIdentityComparator.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/cookie/CookieIdentityComparator.java?rev=618308&r1=618307&r2=618308&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/cookie/CookieIdentityComparator.java
(original)
+++ httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/cookie/CookieIdentityComparator.java
Mon Feb  4 07:51:19 2008
@@ -31,6 +31,7 @@
 
 package org.apache.http.cookie;
 
+import java.io.Serializable;
 import java.util.Comparator;
 
 /**
@@ -43,7 +44,9 @@
  * 
  * @author <a href="mailto:oleg at ural.ru">Oleg Kalnichevski</a>
  */
-public class CookieIdentityComparator implements Comparator<Cookie> {
+public class CookieIdentityComparator implements Serializable, Comparator<Cookie> {
+
+    private static final long serialVersionUID = 4466565437490631532L;
 
     public int compare(final Cookie c1, final Cookie c2) {
         int res = c1.getName().compareTo(c2.getName());

Modified: httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/cookie/CookiePathComparator.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/cookie/CookiePathComparator.java?rev=618308&r1=618307&r2=618308&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/cookie/CookiePathComparator.java
(original)
+++ httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/cookie/CookiePathComparator.java
Mon Feb  4 07:51:19 2008
@@ -31,6 +31,7 @@
 
 package org.apache.http.cookie;
 
+import java.io.Serializable;
 import java.util.Comparator;
 
 /**
@@ -47,7 +48,9 @@
  * 
  * @author <a href="mailto:oleg at ural.ru">Oleg Kalnichevski</a>
  */
-public class CookiePathComparator implements Comparator<Cookie> {
+public class CookiePathComparator implements Serializable, Comparator<Cookie> {
+
+    private static final long serialVersionUID = 7523645369616405818L;
 
     private String normalizePath(final Cookie cookie) {
         String path = cookie.getPath();

Modified: httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/conn/params/TestAllConnParams.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/conn/params/TestAllConnParams.java?rev=618308&r1=618307&r2=618308&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/conn/params/TestAllConnParams.java
(original)
+++ httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/conn/params/TestAllConnParams.java
Mon Feb  4 07:51:19 2008
@@ -30,10 +30,6 @@
 
 package org.apache.http.conn.params;
 
-import org.apache.http.conn.routing.TestAllRouting;
-import org.apache.http.conn.ssl.TestAllSSL;
-import org.apache.http.conn.util.TestAllUtil;
-
 import junit.framework.Test;
 import junit.framework.TestCase;
 import junit.framework.TestSuite;

Modified: httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/conn/params/TestRouteParams.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/conn/params/TestRouteParams.java?rev=618308&r1=618307&r2=618308&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/conn/params/TestRouteParams.java
(original)
+++ httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/conn/params/TestRouteParams.java
Mon Feb  4 07:51:19 2008
@@ -41,13 +41,10 @@
 import org.apache.http.params.HttpParams;
 import org.apache.http.params.BasicHttpParams;
 import org.apache.http.params.DefaultedHttpParams;
-import org.apache.http.conn.params.HttpConnectionManagerParams;
 import org.apache.http.conn.routing.HttpRoute;
 
 // for hierarchy testing
 import org.apache.http.impl.client.ClientParamsStack;
-
-
 
 /**
  * Unit tests for parameters.



Mime
View raw message