Polishing
This commit is contained in:
@@ -403,7 +403,7 @@ public class MediaType implements Comparable<MediaType> {
|
||||
* Indicates whether the {@linkplain #getType() type} is the wildcard character {@code *} or not.
|
||||
*/
|
||||
public boolean isWildcardType() {
|
||||
return WILDCARD_TYPE.equals(type);
|
||||
return WILDCARD_TYPE.equals(this.type);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -419,7 +419,7 @@ public class MediaType implements Comparable<MediaType> {
|
||||
* @return whether the subtype is {@code *}
|
||||
*/
|
||||
public boolean isWildcardSubtype() {
|
||||
return WILDCARD_TYPE.equals(subtype) || subtype.startsWith("*+");
|
||||
return WILDCARD_TYPE.equals(this.subtype) || this.subtype.startsWith("*+");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user