Polish
This commit is contained in:
@@ -296,6 +296,11 @@ public final class MimeMappings implements Iterable<Mapping> {
|
||||
return (previous == null ? null : previous.getMimeType());
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return this.map.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (obj == null) {
|
||||
@@ -311,11 +316,6 @@ public final class MimeMappings implements Iterable<Mapping> {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return this.map.hashCode();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new unmodifiable view of the specified mapping. Methods that attempt to
|
||||
* modify the returned map will throw {@link UnsupportedOperationException}s.
|
||||
@@ -350,6 +350,11 @@ public final class MimeMappings implements Iterable<Mapping> {
|
||||
return this.mimeType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return this.extension.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (obj == null) {
|
||||
@@ -366,11 +371,6 @@ public final class MimeMappings implements Iterable<Mapping> {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return this.extension.hashCode();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user