spmallette commented on code in PR #3212:
URL: https://github.com/apache/tinkerpop/pull/3212#discussion_r2362560269
##########
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/util/TraversalHelper.java:
##########
@@ -640,6 +640,24 @@ public static boolean
hasStepOfAssignableClassRecursively(final Scope scope, fin
return false;
}
+ /**
+ * Checks if the traversal only has steps that are equal to or assignable
from the given step classes.
+ *
+ * @param stepClasses the collection of allowed step classes
+ * @param traversal the traversal to check
+ * @return true if all steps in the traversal are equal to or assignable
from the given classes
+ */
+ public static boolean hasOnlyStepsOfAssignableClassesRecursively(final
Collection<Class> stepClasses, final Traversal.Admin<?, ?> traversal) {
+ for (final Step<?, ?> step :
getStepsOfAssignableClassRecursively(Step.class, traversal)) {
+ boolean isSupported = stepClasses.stream()
Review Comment:
nit: final
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]