hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1365928 - /httpcomponents/httpcore/branches/4.2.x/httpcore/src/main/java/org/apache/http/entity/ContentType.java
Date Thu, 26 Jul 2012 09:56:26 GMT
Author: olegk
Date: Thu Jul 26 09:56:25 2012
New Revision: 1365928

URL: http://svn.apache.org/viewvc?rev=1365928&view=rev
Log:
HTTPCORE-303: ContentType made Serializable

Modified:
    httpcomponents/httpcore/branches/4.2.x/httpcore/src/main/java/org/apache/http/entity/ContentType.java

Modified: httpcomponents/httpcore/branches/4.2.x/httpcore/src/main/java/org/apache/http/entity/ContentType.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/branches/4.2.x/httpcore/src/main/java/org/apache/http/entity/ContentType.java?rev=1365928&r1=1365927&r2=1365928&view=diff
==============================================================================
--- httpcomponents/httpcore/branches/4.2.x/httpcore/src/main/java/org/apache/http/entity/ContentType.java
(original)
+++ httpcomponents/httpcore/branches/4.2.x/httpcore/src/main/java/org/apache/http/entity/ContentType.java
Thu Jul 26 09:56:25 2012
@@ -27,6 +27,7 @@
 
 package org.apache.http.entity;
 
+import java.io.Serializable;
 import java.nio.charset.Charset;
 import java.nio.charset.UnsupportedCharsetException;
 import java.util.Locale;
@@ -50,8 +51,10 @@ import org.apache.http.message.BasicHead
  * @since 4.2
  */
 @Immutable
-public final class ContentType {
+public final class ContentType implements Serializable {
 
+    private static final long serialVersionUID = -7768694718232371896L;
+    
     // constants
     public static final ContentType APPLICATION_ATOM_XML = create(
             "application/atom+xml", Consts.ISO_8859_1);



Mime
View raw message