hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1365929 - in /httpcomponents/httpcore/trunk: RELEASE_NOTES.txt httpcore/src/main/java/org/apache/http/entity/ContentType.java
Date Thu, 26 Jul 2012 09:59:39 GMT
Author: olegk
Date: Thu Jul 26 09:59:39 2012
New Revision: 1365929

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

Modified:
    httpcomponents/httpcore/trunk/RELEASE_NOTES.txt
    httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/entity/ContentType.java

Modified: httpcomponents/httpcore/trunk/RELEASE_NOTES.txt
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/RELEASE_NOTES.txt?rev=1365929&r1=1365928&r2=1365929&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/RELEASE_NOTES.txt (original)
+++ httpcomponents/httpcore/trunk/RELEASE_NOTES.txt Thu Jul 26 09:59:39 2012
@@ -1,3 +1,9 @@
+Changes since 4.2.1
+
+* [HTTPCORE-303] ContentType made Serializable. 
+  Contributed by Oleg Kalnichevski <olegk at apache.org>
+
+
 Release 4.2.1
 -------------------
 

Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/entity/ContentType.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/entity/ContentType.java?rev=1365929&r1=1365928&r2=1365929&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/entity/ContentType.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/entity/ContentType.java
Thu Jul 26 09:59:39 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