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 2020/05/21 18:16:29 UTC
[tinkerpop] 22/27: TINKERPOP-2076 Fixed more warnings in maven build
This is an automated email from the ASF dual-hosted git repository.
spmallette pushed a commit to branch TINKERPOP-2076
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git
commit 6b9577c5fdc0a5db6eebb3bdd65df4e19ddf3a11
Author: stephen <sp...@gmail.com>
AuthorDate: Wed Jan 8 11:20:13 2020 -0500
TINKERPOP-2076 Fixed more warnings in maven build
---
.../gremlin/process/traversal/dsl/graph/GraphTraversal.java | 8 ++++----
.../strategy/verification/LambdaRestrictionStrategy.java | 10 +++++-----
.../java/org/apache/tinkerpop/gremlin/structure/Direction.java | 2 +-
.../main/java/org/apache/tinkerpop/gremlin/structure/Edge.java | 2 +-
.../java/org/apache/tinkerpop/gremlin/structure/Vertex.java | 2 +-
.../java/org/apache/tinkerpop/gremlin/util/TestSupport.java | 5 +----
.../gremlin/process/traversal/step/filter/RangeTest.java | 8 ++++----
.../gremlin/process/traversal/step/filter/TailTest.java | 4 ++--
8 files changed, 19 insertions(+), 22 deletions(-)
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.java
index 8edecc9..902cc03 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.java
@@ -2633,13 +2633,13 @@ public interface GraphTraversal<S, E> extends Traversal<S, E> {
* Indexes all items of the current collection. The indexing format can be configured using the {@link GraphTraversal#with(String, Object)}
* and {@link org.apache.tinkerpop.gremlin.process.traversal.step.util.WithOptions#indexer}.
*
- * Indexed as list: ["a","b","c"] => [["a",0],["b",1],["c",2]]
- * Indexed as map: ["a","b","c"] => {0:"a",1:"b",2:"c"}
+ * Indexed as list: ["a","b","c"] => [["a",0],["b",1],["c",2]]
+ * Indexed as map: ["a","b","c"] => {0:"a",1:"b",2:"c"}
*
* If the current object is not a collection, this step will map the object to a single item collection/map:
*
- * Indexed as list: "a" => ["a",0]
- * Indexed as map: "a" => {0:"a"}
+ * Indexed as list: "a" => ["a",0]
+ * Indexed as map: "a" => {0:"a"}
*
* @return the traversal with an appended {@link IndexStep}
* @see <a href="http://tinkerpop.apache.org/docs/${project.version}/reference/#index-step" target="_blank">Reference Documentation - Index Step</a>
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/verification/LambdaRestrictionStrategy.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/verification/LambdaRestrictionStrategy.java
index 642d17a..71999c5 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/verification/LambdaRestrictionStrategy.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/verification/LambdaRestrictionStrategy.java
@@ -34,11 +34,11 @@ import org.apache.tinkerpop.gremlin.process.traversal.strategy.AbstractTraversal
*
* @author Marko A. Rodriguez (http://markorodriguez.com)
* @example <pre>
- * __.out().map(v -> v.get().value("name")) // throws an IllegalStateException
- * __.out().filter(v -> v.bulk() > 2) // throws an IllegalStateException
- * __.choose(v -> v.sack() == 1,out(),in()) // throws an IllegalStateException
- * __.select().by(v -> v.get().id()) // throws an IllegalStateException
- * __.order().by(a,b -> a > b) // throws an IllegalStateException
+ * __.out().map(v -> v.get().value("name")) // throws an IllegalStateException
+ * __.out().filter(v -> v.bulk() > 2) // throws an IllegalStateException
+ * __.choose(v -> v.sack() == 1,out(),in()) // throws an IllegalStateException
+ * __.select().by(v -> v.get().id()) // throws an IllegalStateException
+ * __.order().by(a,b -> a > b) // throws an IllegalStateException
* </pre>
*/
public final class LambdaRestrictionStrategy extends AbstractTraversalStrategy<TraversalStrategy.VerificationStrategy> implements TraversalStrategy.VerificationStrategy {
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/Direction.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/Direction.java
index d412e24..11db13d 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/Direction.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/Direction.java
@@ -23,7 +23,7 @@ package org.apache.tinkerpop.gremlin.structure;
* {@link Edge}. For example:
* <p/>
* <pre>
- * gremlin--knows-->rexster
+ * gremlin--knows-->rexster
* </pre>
* is an {@link Direction#OUT} {@link Edge} for Gremlin and an {@link Direction#IN} edge for Rexster. Moreover, given
* that {@link Edge}, Gremlin is the {@link Direction#OUT} {@link Vertex} and Rexster is the {@link Direction#IN}
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/Edge.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/Edge.java
index 6df38d2..fba9ae7 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/Edge.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/Edge.java
@@ -29,7 +29,7 @@ import java.util.Iterator;
* <p/>
* Diagrammatically:
* <pre>
- * outVertex ---label---> inVertex.
+ * outVertex ---label---> inVertex.
* </pre>
*
* @author Marko A. Rodriguez (http://markorodriguez.com)
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/Vertex.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/Vertex.java
index 7b0d2a5..a972c72 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/Vertex.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/Vertex.java
@@ -29,7 +29,7 @@ import java.util.Iterator;
* <p/>
* Diagrammatically:
* <pre>
- * ---inEdges---> vertex ---outEdges--->.
+ * ---inEdges---> vertex ---outEdges--->.
* </pre>
*
* @author Marko A. Rodriguez (http://markorodriguez.com)
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/util/TestSupport.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/util/TestSupport.java
index 66820d6..0f89200 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/util/TestSupport.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/util/TestSupport.java
@@ -19,8 +19,6 @@
package org.apache.tinkerpop.gremlin.util;
import org.apache.tinkerpop.gremlin.structure.io.Storage;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
import java.io.File;
import java.io.FileOutputStream;
@@ -28,7 +26,6 @@ import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.List;
-import java.util.Random;
import java.util.stream.Collectors;
import java.util.stream.Stream;
@@ -160,7 +157,7 @@ public class TestSupport {
/**
* Copies a file stored as part of a resource to the file system in the path returned from
- * {@link TestHelper#makeTestDataPath} in a subdirectory called {@code temp/resources}.
+ * {@link TestSupport#makeTestDataPath} in a subdirectory called {@code temp/resources}.
*/
public static File generateTempFileFromResource(final Class graphClass, final Class resourceClass,
final String resourceName, final String extension, final boolean overwrite) throws IOException {
diff --git a/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/filter/RangeTest.java b/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/filter/RangeTest.java
index 3a565be..5480108 100644
--- a/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/filter/RangeTest.java
+++ b/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/filter/RangeTest.java
@@ -183,7 +183,7 @@ public abstract class RangeTest extends AbstractGremlinProcessTest {
}
/**
- * Scenario: limit step, Scope.local, >1 item requested, List<String> input, List<String> output
+ * Scenario: limit step, Scope.local, >1 item requested, List<String> input, List<String> output
*/
@Test
@LoadGraphWith(MODERN)
@@ -212,7 +212,7 @@ public abstract class RangeTest extends AbstractGremlinProcessTest {
}
/**
- * Scenario: range step, Scope.local, >1 item requested, List<String> input, List<String> output
+ * Scenario: range step, Scope.local, >1 item requested, List<String> input, List<String> output
*/
@Test
@LoadGraphWith(MODERN)
@@ -256,7 +256,7 @@ public abstract class RangeTest extends AbstractGremlinProcessTest {
}
/**
- * Scenario: limit step, Scope.local, >1 item requested, Map input, Map output
+ * Scenario: limit step, Scope.local, >1 item requested, Map input, Map output
*/
@Test
@LoadGraphWith(MODERN)
@@ -286,7 +286,7 @@ public abstract class RangeTest extends AbstractGremlinProcessTest {
}
/**
- * Scenario: range step, Scope.local, >1 item requested, Map input, Map output
+ * Scenario: range step, Scope.local, >1 item requested, Map input, Map output
*/
@Test
@LoadGraphWith(MODERN)
diff --git a/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/filter/TailTest.java b/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/filter/TailTest.java
index f48d0af..ce02bb3 100644
--- a/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/filter/TailTest.java
+++ b/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/filter/TailTest.java
@@ -147,7 +147,7 @@ public abstract class TailTest extends AbstractGremlinProcessTest {
}
/**
- * Scenario: Local scope, List input, N>1
+ * Scenario: Local scope, List input, N>1
*/
@Test
@LoadGraphWith(MODERN)
@@ -202,7 +202,7 @@ public abstract class TailTest extends AbstractGremlinProcessTest {
}
/**
- * Scenario: Local scope, Map input, N>1
+ * Scenario: Local scope, Map input, N>1
*/
@Test
@LoadGraphWith(MODERN)