Permalink
Browse files

http://stackoverflow.com/q/30614722/157882

  • Loading branch information...
BalusC committed Jun 3, 2015
1 parent 8debd20 commit 38d03300cc194ba0a66272c5a6d462f0f3b0b55d
Showing with 19 additions and 0 deletions.
  1. +19 −0 src/main/java/org/omnifaces/resourcehandler/RemappedResource.java
@@ -73,6 +73,25 @@ public Resource getWrapped() {
return wrapped;
}
@Override
public boolean equals(Object object) {
if (object == this) {
return true;
}
if (object == null || getClass() != object.getClass()) {
return false;
}
RemappedResource other = (RemappedResource) object;
return wrapped.equals(other.wrapped) && requestPath.equals(other.requestPath);
}
@Override
public int hashCode() {
return wrapped.hashCode() + requestPath.hashCode();
}
@Override
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException {
wrapped = (Resource) input.readObject();

0 comments on commit 38d0330

Please sign in to comment.