Stop DuplicateJsonObjectContextCustomizer breaking context caching

See gh-9248
This commit is contained in:
Andy Wilkinson
2017-06-06 22:23:43 +01:00
parent 21a5ab7875
commit 84721666c5

View File

@@ -85,6 +85,19 @@ class DuplicateJsonObjectContextCustomizerFactory implements ContextCustomizerFa
this.logger.warn(message);
}
@Override
public int hashCode() {
return getClass().hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null || obj.getClass() != getClass()) {
return false;
}
return true;
}
}
}