TINKERPOP-1562 Deprecated GremlinGroovyScriptEngine.close()

In the future GremlinGroovyScriptEngine will not implement AutoCloseable - 
there was never really a need for that.


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

Branch: refs/heads/TINKERPOP-1562
Commit: 7890e910d21d750329dbed0eb11d9207ea80a115
Parents: 3171ec1
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Thu Dec 1 10:15:49 2016 -0500
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Thu Dec 1 10:15:49 2016 -0500

----------------------------------------------------------------------
 .../gremlin/groovy/jsr223/GremlinGroovyScriptEngine.java        | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/7890e910/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 0f36dbf..1fb2efc 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
@@ -384,7 +384,12 @@ public class GremlinGroovyScriptEngine extends 
GroovyScriptEngineImpl
         return (Traversal.Admin) 
this.eval(GroovyTranslator.of(traversalSource).translate(bytecode), bindings);
     }
 
+    /**
+     * @deprecated As of release 3.2.4, not replaced as this class will not 
implement {@code AutoCloseable} in the
+     * future.
+     */
     @Override
+    @Deprecated
     public void close() throws Exception {
     }
 

Reply via email to