Florian Hockmann created TINKERPOP-1853:
-------------------------------------------
Summary: Use generic version of ITraversal for arguments in
Traversal API
Key: TINKERPOP-1853
URL: https://issues.apache.org/jira/browse/TINKERPOP-1853
Project: TinkerPop
Issue Type: Improvement
Components: dotnet
Affects Versions: 3.2.6, 3.3.0
Reporter: Florian Hockmann
Priority: Minor
Currently, we use {{ITraversal}} as the type for arguments in the traversal API
of Gremlin.Net when a traversal is expected:
{code}
public GraphTraversal< S , E2 > Choose<E2> (ITraversal traversalPredicate,
ITraversal trueChoice)
{code}
The Java equivalent is more useful as it only allows {{Traversal<?, E2>}} for
the second argument:
{code}
public default <E2> GraphTraversal<S, E2> choose(final Traversal<?, ?>
traversalPredicate, final Traversal<?, E2> trueChoice)
{code}
We should also use the generic type {{ITraversal<object, E2>}} in Gremlin.Net
in those cases. Then it wouldn't be necessary to specify the type for the
arguments and the step as it can be interfered from the type of the arguments.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)