You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by fl...@apache.org on 2021/04/30 10:55:24 UTC

[tinkerpop] branch TINKERPOP-2348 updated: Allow AddV(null)

This is an automated email from the ASF dual-hosted git repository.

florianhockmann pushed a commit to branch TINKERPOP-2348
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git


The following commit(s) were added to refs/heads/TINKERPOP-2348 by this push:
     new 09440c2  Allow AddV(null)
09440c2 is described below

commit 09440c2790f2b27e498eef63b25888b98f560721
Author: Florian Hockmann <fh...@florian-hockmann.de>
AuthorDate: Fri Apr 30 12:55:12 2021 +0200

    Allow AddV(null)
---
 gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversal.cs      | 2 +-
 .../src/Gremlin.Net/Process/Traversal/GraphTraversalSource.cs           | 2 +-
 gremlin-dotnet/src/Gremlin.Net/Process/Traversal/__.cs                  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversal.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversal.cs
index e1e24cc..3ab34d0 100644
--- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversal.cs
+++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversal.cs
@@ -118,7 +118,7 @@ namespace Gremlin.Net.Process.Traversal
         /// <summary>
         ///     Adds the addV step to this <see cref="GraphTraversal{SType, EType}" />.
         /// </summary>
-        public GraphTraversal<S, Vertex> AddV (string vertexLabel)
+        public GraphTraversal<S, Vertex> AddV (string? vertexLabel)
         {
             Bytecode.AddStep("addV", vertexLabel);
             return Wrap<S, Vertex>(this);
diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversalSource.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversalSource.cs
index ac53f9e..ee35a72 100644
--- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversalSource.cs
+++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversalSource.cs
@@ -329,7 +329,7 @@ namespace Gremlin.Net.Process.Traversal
         ///     Spawns a <see cref="GraphTraversal{SType, EType}" /> off this graph traversal source and adds the addV step to that
         ///     traversal.
         /// </summary>
-        public GraphTraversal<Vertex, Vertex> AddV(string label)
+        public GraphTraversal<Vertex, Vertex> AddV(string? label)
         {
             var traversal = new GraphTraversal<Vertex, Vertex>(TraversalStrategies, new Bytecode(Bytecode));
                 traversal.Bytecode.AddStep("addV", label);
diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/__.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/__.cs
index 2cd3709..4a19368 100644
--- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/__.cs
+++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/__.cs
@@ -76,7 +76,7 @@ namespace Gremlin.Net.Process.Traversal
         /// <summary>
         ///     Spawns a <see cref="GraphTraversal{SType, EType}" /> and adds the addV step to that traversal.
         /// </summary>
-        public static GraphTraversal<object, Vertex> AddV(string vertexLabel)
+        public static GraphTraversal<object, Vertex> AddV(string? vertexLabel)
         {
             return new GraphTraversal<object, Vertex>().AddV(vertexLabel);            
         }