This commit is contained in:
Phillip Webb
2014-05-22 20:32:36 +01:00
parent 94a255074f
commit 1a475102de
43 changed files with 212 additions and 132 deletions

View File

@@ -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();
}
}
}