GitHub user metlos opened a pull request:
https://github.com/apache/tinkerpop/pull/519
Make ElementHelper.areEqual(Property, Object) handle nullsâ¦
⦠so that it can be used correctly in equals() methods of Property impls.
Added test methods for additional equality "scenarios" in ElementHelper.
Note that it is not possible to add tests for equals on `Vertex`, `Edge`,
`Property` and `VertexProperty` directly as they are interfaces, not concrete
classes. Instead I've added additional test methods for `ElementHelper` to test
various case of properties and elements. `ElementHelper.areEqual()` methods are
suggested to be used for `equals` of implementations of those interfaces.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/metlos/tinkerpop null-equality-on-props
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/tinkerpop/pull/519.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #519
commit 366a0b473e09ccdb4e49803d1ab804f82faf32e2
Author: Lukas Krejci
Date: 2016-12-21T22:02:03Z
Make ElementHelper.areEqual(Property, Object) handle nulls so that it can
be used correctly in equals() methods of Property impls.
Added test methods for additional equality "scenarios" in ElementHelper.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---