Skip to content

Commit

Permalink
Delete unused method (closes #1455)
Browse files Browse the repository at this point in the history
  • Loading branch information
scordio committed Aug 16, 2020
1 parent 7ca96f3 commit 1c7f106
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,6 @@
*/
public final class EqualsHashCodeContractAssert {

/**
* Verifies that the {@code equals} implementation of the given object returns {@code false} when the object is
* compared to {@code null}.
* @param obj the object to verify.
* @throws AssertionError if the {@code equals} implementation of the given objects returns {@code true} when the
* object compared to {@code null}.
* @see EqualsHashCodeContractTestCase#should_not_be_equal_to_null()
*/
public static void assertIsNotEqualToNull(Object obj) {
assertThat(obj.equals(null)).isNull();
}

/**
* Verifies that the {@code equals} implementation of the given object is reflexive: the object must be equal to
* itself, which it would be at any given instance; unless you intentionally override the equals method to behave
Expand Down

0 comments on commit 1c7f106

Please sign in to comment.