Declare resolvedCharset as transient (restoring serializability)

Closes gh-26127
This commit is contained in:
Juergen Hoeller
2020-11-20 18:57:30 +01:00
parent 9e99fd5df2
commit e238c8a87c
4 changed files with 54 additions and 24 deletions

View File

@@ -480,9 +480,9 @@ public class MediaType extends MimeType implements Serializable {
@Override
protected void checkParameters(String attribute, String value) {
super.checkParameters(attribute, value);
if (PARAM_QUALITY_FACTOR.equals(attribute)) {
protected void checkParameters(String parameter, String value) {
super.checkParameters(parameter, value);
if (PARAM_QUALITY_FACTOR.equals(parameter)) {
value = unquote(value);
double d = Double.parseDouble(value);
Assert.isTrue(d >= 0D && d <= 1D,