- Notifications
You must be signed in to change notification settings - Fork 408
Open
Description
Following up from #4018
Original comment: https://github.com/apache/polaris/pull/4018/changes#r2954587783
Test code:
@Test void compareWithIndexElem() { IndexKey key = IndexKey.key("test"); DirectIndexElement<Object> d = new DirectIndexElement<>(key, null); Index.Element<String> e = Index.Element.of(key, "test"); assertThat(d.equals(e)).isFalse(); assertThat(e.equals(d)).isFalse(); } The first assertion passes, but the second assertion throws a NullPointerException. This indicates that this .equals() impl. in non-commutative in general.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels