Use unquoted value in assertion message in MediaType.checkParameters()

This commit is contained in:
Johnny Lim 2022-11-10 23:38:11 +09:00 committed by Juergen Hoeller
parent fb22044c10
commit 4c2072d20c
1 changed files with 1 additions and 1 deletions

View File

@ -547,7 +547,7 @@ public class MediaType extends MimeType implements Serializable {
String unquotedValue = unquote(value);
double d = Double.parseDouble(unquotedValue);
Assert.isTrue(d >= 0D && d <= 1D,
() -> "Invalid quality value \"" + value + "\": should be between 0.0 and 1.0");
() -> "Invalid quality value \"" + unquotedValue + "\": should be between 0.0 and 1.0");
}
}