You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2017/04/17 15:32:26 UTC

[6/8] tinkerpop git commit: Javadoc cleanup CTR

Javadoc cleanup CTR


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/d28b276e
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/d28b276e
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/d28b276e

Branch: refs/heads/master
Commit: d28b276ed1307751d03998301539b5c2df9f1032
Parents: 7bcf70c
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Mon Apr 17 10:49:09 2017 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Mon Apr 17 10:49:09 2017 -0400

----------------------------------------------------------------------
 .../gremlin/server/util/DefaultGraphManager.java    | 16 +++++-----------
 1 file changed, 5 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/d28b276e/gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/util/DefaultGraphManager.java
----------------------------------------------------------------------
diff --git a/gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/util/DefaultGraphManager.java b/gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/util/DefaultGraphManager.java
index 71c4b98..5e4a355 100644
--- a/gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/util/DefaultGraphManager.java
+++ b/gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/util/DefaultGraphManager.java
@@ -69,7 +69,7 @@ public final class DefaultGraphManager implements GraphManager {
      * Get a list of the {@link Graph} instances and their binding names as defined in the Gremlin Server
      * configuration file.
      *
-     * @return a {@link Map} where the key is the name of the {@link Graph} and the value is the {@link Graph} itself
+     * @return a {@code Map} where the key is the name of the {@link Graph} and the value is the {@link Graph} itself
      * @deprecated As of release 3.2.5, replaced by a combination of {@link #getGraphNames()} and
      * {@link #getGraph(String)}
      */
@@ -91,12 +91,10 @@ public final class DefaultGraphManager implements GraphManager {
     }
 
     /**
-     * @Deprecated
-     *
      * Get a list of the {@link TraversalSource} instances and their binding names as defined by Gremlin Server
      * initialization scripts.
      *
-     * @return a {@link Map} where the key is the name of the {@link TraversalSource} and the value is the
+     * @return a {@code Map} where the key is the name of the {@link TraversalSource} and the value is the
      * {@link TraversalSource} itself
      * @deprecated As of release 3.2.5, replaced by a combination of {@link #getTraversalSource(String)} ()} and
      * {@link #getTraversalSource(String)} (String)}
@@ -169,10 +167,7 @@ public final class DefaultGraphManager implements GraphManager {
     }
 
     /**
-     * If {@link Map} containing {@link Graph} references contains one corresponding to
-     * {@link String} graphName, then we return that {@link Graph}; otherwise, instantiate a
-     * new {@link Graph} using the {@link Supplier}, add it to the {@link Map} tracking {@link Graph}
-     * references, and return that {@link Graph}.
+     * {@inheritDoc}
      */
     public final Graph openGraph(final String graphName, final Function<String, Graph> supplier) {
         final Graph graph = graphs.get(graphName);
@@ -185,8 +180,7 @@ public final class DefaultGraphManager implements GraphManager {
     }
 
     /**
-     * Remove {@link Graph} corresponding to {@link String} graphName from {@link Map}
-     * tracking graph references and close the {@link Graph}.
+     * {@inheritDoc}
      */
     public final Graph removeGraph(final String graphName) throws Exception {
         Graph graph = graphs.remove(graphName);
@@ -197,7 +191,7 @@ public final class DefaultGraphManager implements GraphManager {
     /**
      * Selectively close transactions on the specified graphs or the graphs of traversal sources.
      */
-    private final void closeTx(final Set<String> graphSourceNamesToCloseTxOn, final Transaction.Status tx) {
+    private void closeTx(final Set<String> graphSourceNamesToCloseTxOn, final Transaction.Status tx) {
         final Set<Graph> graphsToCloseTxOn = new HashSet<>();
 
         // by the time this method has been called, it should be validated that the source/graph is present.