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 2015/05/11 20:25:44 UTC

incubator-tinkerpop git commit: Use GroovySystem to access the MetaRegistry.

Repository: incubator-tinkerpop
Updated Branches:
  refs/heads/master dbd275083 -> 0ca191a60


Use GroovySystem to access the MetaRegistry.


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

Branch: refs/heads/master
Commit: 0ca191a60f5c77da17aa97074c00d148115ba4b1
Parents: dbd2750
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Mon May 11 14:25:20 2015 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Mon May 11 14:25:20 2015 -0400

----------------------------------------------------------------------
 .../apache/tinkerpop/gremlin/groovy/util/MetaRegistryUtil.groovy | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/0ca191a6/gremlin-groovy/src/main/groovy/org/apache/tinkerpop/gremlin/groovy/util/MetaRegistryUtil.groovy
----------------------------------------------------------------------
diff --git a/gremlin-groovy/src/main/groovy/org/apache/tinkerpop/gremlin/groovy/util/MetaRegistryUtil.groovy b/gremlin-groovy/src/main/groovy/org/apache/tinkerpop/gremlin/groovy/util/MetaRegistryUtil.groovy
index 9d56d11..7918edc 100644
--- a/gremlin-groovy/src/main/groovy/org/apache/tinkerpop/gremlin/groovy/util/MetaRegistryUtil.groovy
+++ b/gremlin-groovy/src/main/groovy/org/apache/tinkerpop/gremlin/groovy/util/MetaRegistryUtil.groovy
@@ -18,8 +18,6 @@
  */
 package org.apache.tinkerpop.gremlin.groovy.util
 
-import org.codehaus.groovy.runtime.InvokerHelper
-
 /**
  * Helper functions for working with the Groovy {@code MetaRegistry}.
  *
@@ -32,7 +30,7 @@ class MetaRegistryUtil {
      * were added to a class, then this method will clear those methods from the supplied classes.
      */
     public static void clearRegistry(final Set<Class> toClear) {
-        def metaRegistry = InvokerHelper.getMetaRegistry()
+        def metaRegistry = GroovySystem.metaClassRegistry
 
         // this call returns interfaces and removes meta clases from there.  not sure why it doesn't return
         // concrete classes that are in the registry, but such is the nature of groovy