Commit 84721666 authored by Andy Wilkinson's avatar Andy Wilkinson

Stop DuplicateJsonObjectContextCustomizer breaking context caching

See gh-9248
parent 21a5ab78
...@@ -85,6 +85,19 @@ class DuplicateJsonObjectContextCustomizerFactory implements ContextCustomizerFa ...@@ -85,6 +85,19 @@ class DuplicateJsonObjectContextCustomizerFactory implements ContextCustomizerFa
this.logger.warn(message); 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;
}
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment