@ -149,7 +149,7 @@ public class MediaType implements Comparable<MediaType> {
@@ -149,7 +149,7 @@ public class MediaType implements Comparable<MediaType> {
@ -172,10 +172,7 @@ public class MediaType implements Comparable<MediaType> {
@@ -172,10 +172,7 @@ public class MediaType implements Comparable<MediaType> {
Assert.hasLength(attribute,"pameter attribute must not be empty");
Assert.hasLength(value,"pameter value must not be empty");
checkToken(attribute);
checkTokenOrQuotedString(value);
checkParameters(attribute,value);
m.put(attribute,value);
}
this.parameters=Collections.unmodifiableMap(m);
@ -200,10 +197,24 @@ public class MediaType implements Comparable<MediaType> {
@@ -200,10 +197,24 @@ public class MediaType implements Comparable<MediaType> {
@ -246,7 +257,7 @@ public class MediaType implements Comparable<MediaType> {
@@ -246,7 +257,7 @@ public class MediaType implements Comparable<MediaType> {