Commit 6548ca4c authored by Andy Wilkinson's avatar Andy Wilkinson

Implement equals and hashCode in TestTypeExcludeFilter

Fixes gh-23978
parent 30a0ccab
......@@ -62,6 +62,16 @@ class TestTypeExcludeFilter extends TypeExcludeFilter {
return false;
}
@Override
public boolean equals(Object obj) {
return (obj != null) && (getClass() == obj.getClass());
}
@Override
public int hashCode() {
return getClass().hashCode();
}
private boolean isTestConfiguration(MetadataReader metadataReader) {
return (metadataReader.getAnnotationMetadata().isAnnotated(TestComponent.class.getName()));
}
......
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