Skip to content

Commit

Permalink
Make MediaType serializable
Browse files Browse the repository at this point in the history
Issue: SPR-8738
  • Loading branch information
rstoyanchev committed Aug 22, 2013
1 parent 8811521 commit 1fd7bc3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package org.springframework.util;

import java.io.Serializable;
import java.nio.charset.Charset;
import java.util.BitSet;
import java.util.Collections;
Expand Down Expand Up @@ -45,7 +46,9 @@
*
* @see MimeTypeUtils
*/
public class MimeType implements Comparable<MimeType> {
public class MimeType implements Comparable<MimeType>, Serializable {

private static final long serialVersionUID = 4085923477777865903L;

protected static final String WILDCARD_TYPE = "*";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package org.springframework.http;

import java.io.Serializable;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Collection;
Expand All @@ -42,7 +43,9 @@
* @since 3.0
* @see <a href="http://tools.ietf.org/html/rfc2616#section-3.7">HTTP 1.1, section 3.7</a>
*/
public class MediaType extends MimeType {
public class MediaType extends MimeType implements Serializable {

private static final long serialVersionUID = 2069937152339670231L;

/**
* Public constant media type that includes all media ranges (i.e. "&#42;/&#42;").
Expand Down

0 comments on commit 1fd7bc3

Please sign in to comment.