@@ -284,16 +284,15 @@ public MediaType(String type, String subtype) {
284
284
* Create a new {@code MediaType} for the given type, subtype, and character set.
285
285
* @param type the primary type
286
286
* @param subtype the subtype
287
- * @param charSet the character set
287
+ * @param charset the character set
288
288
* @throws IllegalArgumentException if any of the parameters contain illegal characters
289
289
*/
290
- public MediaType (String type , String subtype , Charset charSet ) {
291
- this (type , subtype , Collections .singletonMap (PARAM_CHARSET , charSet .name ()));
290
+ public MediaType (String type , String subtype , Charset charset ) {
291
+ this (type , subtype , Collections .singletonMap (PARAM_CHARSET , charset .name ()));
292
292
}
293
293
294
294
/**
295
295
* Create a new {@code MediaType} for the given type, subtype, and quality value.
296
- *
297
296
* @param type the primary type
298
297
* @param subtype the subtype
299
298
* @param qualityValue the quality value
@@ -774,18 +773,18 @@ public static String toString(Collection<MediaType> mediaTypes) {
774
773
* Sorts the given list of {@code MediaType} objects by specificity.
775
774
* <p>Given two media types:
776
775
* <ol>
777
- * <li>if either media type has a {@linkplain #isWildcardType() wildcard type}, then the media type without the
778
- * wildcard is ordered before the other.</li>
779
- * <li>if the two media types have different {@linkplain #getType() types}, then they are considered equal and
780
- * remain their current order.</li>
781
- * <li>if either media type has a {@linkplain #isWildcardSubtype() wildcard subtype}, then the media type without
782
- * the wildcard is sorted before the other.</li>
783
- * <li>if the two media types have different {@linkplain #getSubtype() subtypes}, then they are considered equal
784
- * and remain their current order.</li>
785
- * <li>if the two media types have different {@linkplain #getQualityValue() quality value}, then the media type
786
- * with the highest quality value is ordered before the other.</li>
787
- * <li>if the two media types have a different amount of {@linkplain #getParameter(String) parameters}, then the
788
- * media type with the most parameters is ordered before the other.</li>
776
+ * <li>if either media type has a {@linkplain #isWildcardType() wildcard type}, then the media type without the
777
+ * wildcard is ordered before the other.</li>
778
+ * <li>if the two media types have different {@linkplain #getType() types}, then they are considered equal and
779
+ * remain their current order.</li>
780
+ * <li>if either media type has a {@linkplain #isWildcardSubtype() wildcard subtype}, then the media type without
781
+ * the wildcard is sorted before the other.</li>
782
+ * <li>if the two media types have different {@linkplain #getSubtype() subtypes}, then they are considered equal
783
+ * and remain their current order.</li>
784
+ * <li>if the two media types have different {@linkplain #getQualityValue() quality value}, then the media type
785
+ * with the highest quality value is ordered before the other.</li>
786
+ * <li>if the two media types have a different amount of {@linkplain #getParameter(String) parameters}, then the
787
+ * media type with the most parameters is ordered before the other.</li>
789
788
* </ol>
790
789
* <p>For example:
791
790
* <blockquote>audio/basic < audio/* < */*</blockquote>
@@ -807,18 +806,18 @@ public static void sortBySpecificity(List<MediaType> mediaTypes) {
807
806
* Sorts the given list of {@code MediaType} objects by quality value.
808
807
* <p>Given two media types:
809
808
* <ol>
810
- * <li>if the two media types have different {@linkplain #getQualityValue() quality value}, then the media type
811
- * with the highest quality value is ordered before the other.</li>
812
- * <li>if either media type has a {@linkplain #isWildcardType() wildcard type}, then the media type without the
813
- * wildcard is ordered before the other.</li>
814
- * <li>if the two media types have different {@linkplain #getType() types}, then they are considered equal and
815
- * remain their current order.</li>
816
- * <li>if either media type has a {@linkplain #isWildcardSubtype() wildcard subtype}, then the media type without
817
- * the wildcard is sorted before the other.</li>
818
- * <li>if the two media types have different {@linkplain #getSubtype() subtypes}, then they are considered equal
819
- * and remain their current order.</li>
820
- * <li>if the two media types have a different amount of {@linkplain #getParameter(String) parameters}, then the
821
- * media type with the most parameters is ordered before the other.</li>
809
+ * <li>if the two media types have different {@linkplain #getQualityValue() quality value}, then the media type
810
+ * with the highest quality value is ordered before the other.</li>
811
+ * <li>if either media type has a {@linkplain #isWildcardType() wildcard type}, then the media type without the
812
+ * wildcard is ordered before the other.</li>
813
+ * <li>if the two media types have different {@linkplain #getType() types}, then they are considered equal and
814
+ * remain their current order.</li>
815
+ * <li>if either media type has a {@linkplain #isWildcardSubtype() wildcard subtype}, then the media type without
816
+ * the wildcard is sorted before the other.</li>
817
+ * <li>if the two media types have different {@linkplain #getSubtype() subtypes}, then they are considered equal
818
+ * and remain their current order.</li>
819
+ * <li>if the two media types have a different amount of {@linkplain #getParameter(String) parameters}, then the
820
+ * media type with the most parameters is ordered before the other.</li>
822
821
* </ol>
823
822
* @param mediaTypes the list of media types to be sorted
824
823
* @see #getQualityValue()
0 commit comments