Skip to content

Commit 91ae711

Browse files
committed
Fix Javadoc for MediaType
1 parent 4e7d8a8 commit 91ae711

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-web/src/main/java/org/springframework/http/MediaType.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ public MediaType(MediaType other, Charset charset) {
432432

433433
/**
434434
* Copy-constructor that copies the type and subtype of the given {@code MediaType},
435-
* and allows for different parameter.
435+
* and allows for different parameters.
436436
* @param other the other media type
437437
* @param parameters the parameters, may be {@code null}
438438
* @throws IllegalArgumentException if any of the parameters contain illegal characters
@@ -479,7 +479,7 @@ public double getQualityValue() {
479479
* <p>For instance, {@code text/*} includes {@code text/plain} and {@code text/html},
480480
* and {@code application/*+xml} includes {@code application/soap+xml}, etc.
481481
* This method is <b>not</b> symmetric.
482-
* <p>Simply calls {@link #includes(MimeType)} but declared with a
482+
* <p>Simply calls {@link MimeType#includes(MimeType)} but declared with a
483483
* {@code MediaType} parameter for binary backwards compatibility.
484484
* @param other the reference media type with which to compare
485485
* @return {@code true} if this media type includes the given media type;
@@ -494,7 +494,7 @@ public boolean includes(@Nullable MediaType other) {
494494
* <p>For instance, {@code text/*} is compatible with {@code text/plain},
495495
* {@code text/html}, and vice versa. In effect, this method is similar to
496496
* {@link #includes}, except that it <b>is</b> symmetric.
497-
* <p>Simply calls {@link #isCompatibleWith(MimeType)} but declared with a
497+
* <p>Simply calls {@link MimeType#isCompatibleWith(MimeType)} but declared with a
498498
* {@code MediaType} parameter for binary backwards compatibility.
499499
* @param other the reference media type with which to compare
500500
* @return {@code true} if this media type is compatible with the given media type;

0 commit comments

Comments
 (0)