This commit is contained in:
aevitas 2023-04-01 13:01:36 +02:00 committed by GitHub
parent ec83d01dca
commit d4245582a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,11 +27,7 @@ public class QueryRankVisitor extends DetectAnnotationVisitor {
collectNodeRank(query.getAnnotationOf(Annotation.Type.NODE_RANK).get(), query);
}
boolean found = false;
for (Query child : query.getChildren()) {
found |= child.accept(this);
}
return found;
return query.getChildren().stream().anyMatch(child -> child.accept(this));
}
@Override