tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spmalle...@apache.org
Subject [17/20] tinkerpop git commit: TINKERPOP-1644 Changed time settings to Long values.
Date Wed, 15 Mar 2017 16:36:46 GMT
TINKERPOP-1644 Changed time settings to Long values.

Using long is consistent with other customizer instances.


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

Branch: refs/heads/master
Commit: 7fced963db5b73b4bb8e943f7db02cf2a491cd12
Parents: 85c5330
Author: Stephen Mallette <spmva@genoprime.com>
Authored: Tue Mar 14 12:30:26 2017 -0400
Committer: Stephen Mallette <spmva@genoprime.com>
Committed: Tue Mar 14 12:30:26 2017 -0400

----------------------------------------------------------------------
 .../groovy/jsr223/CompilationOptionsCustomizer.java     |  6 +++---
 .../groovy/jsr223/GremlinGroovyScriptEngine.java        |  2 +-
 .../CompilationOptionsCustomizerProvider.java           | 12 ++++++++----
 3 files changed, 12 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/7fced963/gremlin-groovy/src/main/java/org/apache/tinkerpop/gremlin/groovy/jsr223/CompilationOptionsCustomizer.java
----------------------------------------------------------------------
diff --git a/gremlin-groovy/src/main/java/org/apache/tinkerpop/gremlin/groovy/jsr223/CompilationOptionsCustomizer.java
b/gremlin-groovy/src/main/java/org/apache/tinkerpop/gremlin/groovy/jsr223/CompilationOptionsCustomizer.java
index 2a22eb3..de39b62 100644
--- a/gremlin-groovy/src/main/java/org/apache/tinkerpop/gremlin/groovy/jsr223/CompilationOptionsCustomizer.java
+++ b/gremlin-groovy/src/main/java/org/apache/tinkerpop/gremlin/groovy/jsr223/CompilationOptionsCustomizer.java
@@ -27,13 +27,13 @@ import org.apache.tinkerpop.gremlin.jsr223.Customizer;
  */
 class CompilationOptionsCustomizer implements Customizer {
 
-    private final int expectedCompilationTime;
+    private final long expectedCompilationTime;
 
-    public CompilationOptionsCustomizer(final int expectedCompilationTime) {
+    public CompilationOptionsCustomizer(final long expectedCompilationTime) {
         this.expectedCompilationTime = expectedCompilationTime;
     }
 
-    public int getExpectedCompilationTime() {
+    public long getExpectedCompilationTime() {
         return expectedCompilationTime;
     }
 }

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/7fced963/gremlin-groovy/src/main/java/org/apache/tinkerpop/gremlin/groovy/jsr223/GremlinGroovyScriptEngine.java
----------------------------------------------------------------------
diff --git a/gremlin-groovy/src/main/java/org/apache/tinkerpop/gremlin/groovy/jsr223/GremlinGroovyScriptEngine.java
b/gremlin-groovy/src/main/java/org/apache/tinkerpop/gremlin/groovy/jsr223/GremlinGroovyScriptEngine.java
index 0ed8d84..4b27180 100644
--- a/gremlin-groovy/src/main/java/org/apache/tinkerpop/gremlin/groovy/jsr223/GremlinGroovyScriptEngine.java
+++ b/gremlin-groovy/src/main/java/org/apache/tinkerpop/gremlin/groovy/jsr223/GremlinGroovyScriptEngine.java
@@ -238,7 +238,7 @@ public class GremlinGroovyScriptEngine extends GroovyScriptEngineImpl
 
     private final Set<Artifact> artifactsToUse = new HashSet<>();
     private final boolean interpreterModeEnabled;
-    private final int expectedCompilationTime;
+    private final long expectedCompilationTime;
 
     /**
      * Creates a new instance using the {@link DefaultImportCustomizerProvider}.

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/7fced963/gremlin-groovy/src/main/java/org/apache/tinkerpop/gremlin/groovy/jsr223/customizer/CompilationOptionsCustomizerProvider.java
----------------------------------------------------------------------
diff --git a/gremlin-groovy/src/main/java/org/apache/tinkerpop/gremlin/groovy/jsr223/customizer/CompilationOptionsCustomizerProvider.java
b/gremlin-groovy/src/main/java/org/apache/tinkerpop/gremlin/groovy/jsr223/customizer/CompilationOptionsCustomizerProvider.java
index 0475511..00a20f1 100644
--- a/gremlin-groovy/src/main/java/org/apache/tinkerpop/gremlin/groovy/jsr223/customizer/CompilationOptionsCustomizerProvider.java
+++ b/gremlin-groovy/src/main/java/org/apache/tinkerpop/gremlin/groovy/jsr223/customizer/CompilationOptionsCustomizerProvider.java
@@ -31,13 +31,17 @@ import org.codehaus.groovy.control.customizers.CompilationCustomizer;
 @Deprecated
 public class CompilationOptionsCustomizerProvider implements CompilerCustomizerProvider {
 
-    private final int expectedCompilationTime;
+    private final long expectedCompilationTime;
 
-    public CompilationOptionsCustomizerProvider(final int expectedCompilationTime) {
-        this.expectedCompilationTime = expectedCompilationTime;
+    public CompilationOptionsCustomizerProvider(final Integer expectedCompilationTime) {
+        this.expectedCompilationTime = expectedCompilationTime.longValue();
     }
 
-    public int getExpectedCompilationTime() {
+    public CompilationOptionsCustomizerProvider(final Long expectedCompilationTime) {
+        this.expectedCompilationTime = expectedCompilationTime.intValue();
+    }
+
+    public long getExpectedCompilationTime() {
         return expectedCompilationTime;
     }
 


Mime
View raw message