You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2020/10/06 19:04:14 UTC

[groovy] branch GROOVY-8258 updated: GROOVY-8258: trivial refactor

This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch GROOVY-8258
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/GROOVY-8258 by this push:
     new fea2f20  GROOVY-8258: trivial refactor
fea2f20 is described below

commit fea2f209cdefb6db8d668d41b0f9bc4ecc6bac29
Author: Daniel Sun <su...@apache.org>
AuthorDate: Wed Oct 7 03:03:55 2020 +0800

    GROOVY-8258: trivial refactor
---
 .../org/apache/groovy/linq/provider/collection/GinqAstWalker.groovy    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/subprojects/groovy-linq/src/main/groovy/org/apache/groovy/linq/provider/collection/GinqAstWalker.groovy b/subprojects/groovy-linq/src/main/groovy/org/apache/groovy/linq/provider/collection/GinqAstWalker.groovy
index ea52180..798f578 100644
--- a/subprojects/groovy-linq/src/main/groovy/org/apache/groovy/linq/provider/collection/GinqAstWalker.groovy
+++ b/subprojects/groovy-linq/src/main/groovy/org/apache/groovy/linq/provider/collection/GinqAstWalker.groovy
@@ -58,7 +58,6 @@ import static org.codehaus.groovy.ast.tools.GeneralUtils.stmt
  */
 @CompileStatic
 class GinqAstWalker implements GinqVisitor<Object>, SyntaxErrorReportable {
-    private static final String QUERYABLE_COLLECTION_CLASS_NAME = QueryableCollection.class.name
     private final SourceUnit sourceUnit
 
     GinqAstWalker(SourceUnit sourceUnit) {
@@ -280,7 +279,7 @@ class GinqAstWalker implements GinqVisitor<Object>, SyntaxErrorReportable {
     }
 
     private static makeQueryableCollectionClassExpression() {
-        new ClassExpression(ClassHelper.make(QUERYABLE_COLLECTION_CLASS_NAME))
+        new ClassExpression(ClassHelper.make(QueryableCollection.class))
     }
 
     @Override