groovy git commit: Remove duplicated methods

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

groovy git commit: Remove duplicated methods

sunlan
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_6_X 027736741 -> e7869c70a


Remove duplicated methods


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

Branch: refs/heads/GROOVY_2_6_X
Commit: e7869c70ab5fbcff76885979f30c2e4985e03265
Parents: 0277367
Author: sunlan <[hidden email]>
Authored: Sun Jun 18 23:06:27 2017 +0800
Committer: sunlan <[hidden email]>
Committed: Sun Jun 18 23:06:27 2017 +0800

----------------------------------------------------------------------
 .../org/apache/groovy/parser/antlr4/GroovyParser.g4  | 15 +++------------
 1 file changed, 3 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/e7869c70/subprojects/parser-antlr4/src/main/antlr4/org/apache/groovy/parser/antlr4/GroovyParser.g4
----------------------------------------------------------------------
diff --git a/subprojects/parser-antlr4/src/main/antlr4/org/apache/groovy/parser/antlr4/GroovyParser.g4 b/subprojects/parser-antlr4/src/main/antlr4/org/apache/groovy/parser/antlr4/GroovyParser.g4
index b44eaf5..972da10 100644
--- a/subprojects/parser-antlr4/src/main/antlr4/org/apache/groovy/parser/antlr4/GroovyParser.g4
+++ b/subprojects/parser-antlr4/src/main/antlr4/org/apache/groovy/parser/antlr4/GroovyParser.g4
@@ -50,7 +50,7 @@ options {
 @members {
 
     public static class GroovyParserRuleContext extends ParserRuleContext implements NodeMetaDataHandler {
-        private Map metaDataMap = null;
+        private Map<?, ?> metaDataMap = null;
         private NodeMetaDataHandlerHelper helper = new NodeMetaDataHandlerHelper(this);
 
         public GroovyParserRuleContext() {}
@@ -60,15 +60,6 @@ options {
         }
 
         @Override
-        public Map<?, ?> getMetaDataMap() {
-            return this.metaDataMap;
-        }
-
-        @Override
-        public void setMetaDataMap(Map<?, ?> metaDataMap) {
-            this.metaDataMap = metaDataMap;
-        }
-
         public <T> T getNodeMetaData(Object key) {
             return helper.getNodeMetaData(key);
         }
@@ -99,8 +90,8 @@ options {
         }
 
         @Override
-        public ListHashMap getMetaDataMap() {
-            return (ListHashMap) metaDataMap;
+        public Map<?, ?> getMetaDataMap() {
+            return this.metaDataMap;
         }
 
         @Override

Loading...