You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2019/12/03 17:59:04 UTC
[tinkerpop] 12/23: TINKERPOP-2235 Improve map checks for null
This is an automated email from the ASF dual-hosted git repository.
spmallette pushed a commit to branch TINKERPOP-2235
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git
commit ba454fdf15582879a184679f3a4e02806dda2b46
Author: stephen <sp...@gmail.com>
AuthorDate: Fri Nov 15 17:28:12 2019 -0500
TINKERPOP-2235 Improve map checks for null
---
.../apache/tinkerpop/gremlin/process/AbstractGremlinProcessTest.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/AbstractGremlinProcessTest.java b/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/AbstractGremlinProcessTest.java
index ec9492b..09044de 100644
--- a/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/AbstractGremlinProcessTest.java
+++ b/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/AbstractGremlinProcessTest.java
@@ -34,6 +34,7 @@ import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+import java.util.Objects;
import java.util.UUID;
import java.util.stream.Collectors;
@@ -184,10 +185,10 @@ public abstract class AbstractGremlinProcessTest extends AbstractGremlinTest {
}
for (int i = 0; i < actualList.size(); i++) {
- if (!actualList.get(i).getKey().equals(expectedList.get(i).getKey())) {
+ if (!Objects.equals(actualList.get(i).getKey(), expectedList.get(i).getKey())) {
return false;
}
- if (!actualList.get(i).getValue().equals(expectedList.get(i).getValue())) {
+ if (!Objects.equals(actualList.get(i).getValue(), expectedList.get(i).getValue())) {
return false;
}
}