Skip to content
This repository was archived by the owner on Feb 12, 2019. It is now read-only.

Commit a19b669

Browse files
committed
updates method reference
1 parent 16695ac commit a19b669

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

artemis-graph/src/main/java/org/jnosql/artemis/graph/query/AbstractQueryConvert.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ protected GraphTraversal<Vertex, Vertex> getPredicate(GraphQueryMethod graphQuer
5151
return __.not(getPredicate(graphQuery, notCondition, representation));
5252
case AND:
5353
return ConditionValue.class.cast(condition.getValue()).get().stream()
54-
.map(c -> getPredicate(graphQuery, c, representation)).reduce((a, b) -> a.and(b))
54+
.map(c -> getPredicate(graphQuery, c, representation)).reduce(GraphTraversal::and)
5555
.orElseThrow(() -> new UnsupportedOperationException("There is an inconsistency at the AND operator"));
5656
case OR:
5757
return ConditionValue.class.cast(condition.getValue()).get().stream()
58-
.map(c -> getPredicate(graphQuery, c, representation)).reduce((a, b) -> a.or(b))
58+
.map(c -> getPredicate(graphQuery, c, representation)).reduce(GraphTraversal::or)
5959
.orElseThrow(() -> new UnsupportedOperationException("There is an inconsistency at the OR operator"));
6060
default:
6161
throw new UnsupportedOperationException("There is not support to the type " + operator + " in graph");

0 commit comments

Comments
 (0)