We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OrFilter and AndFilter should not break hashCode() and equals() contract.
For example:
ElementFilter efa = new ElementFilter("a"); ElementFilter efb = new ElementFilter("b");
OrFilter orfa = efa.or(efb); OrFilter orfb = efb.or(efa);
// the following succeeds assertTrue(orfa.equals(orfb)); // the following fails. assertTrue(orfa.hashCode() == orfb.hashCode());
Re-Enable JUnit tests in AbstractTestFilter once fixed.
The text was updated successfully, but these errors were encountered:
Add Tests for all the Filter classes. See issue #19 for problems with
72d47c1
the hashCode() and equals() methods.
845cb5a
No branches or pull requests
OrFilter and AndFilter should not break hashCode() and equals() contract.
For example:
ElementFilter efa = new ElementFilter("a");
ElementFilter efb = new ElementFilter("b");
OrFilter orfa = efa.or(efb);
OrFilter orfb = efb.or(efa);
// the following succeeds
assertTrue(orfa.equals(orfb));
// the following fails.
assertTrue(orfa.hashCode() == orfb.hashCode());
Re-Enable JUnit tests in AbstractTestFilter once fixed.
The text was updated successfully, but these errors were encountered: