You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2022/04/17 11:08:29 UTC

[groovy] branch master updated: minor refactor: remove deprecation warning

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

paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new 9da9b4162d minor refactor: remove deprecation warning
9da9b4162d is described below

commit 9da9b4162de5a2265844cfbb5ce62aaa795275be
Author: Paul King <pa...@asert.com.au>
AuthorDate: Sun Apr 17 21:08:15 2022 +1000

    minor refactor: remove deprecation warning
---
 src/main/java/org/codehaus/groovy/ast/MixinASTTransformation.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/codehaus/groovy/ast/MixinASTTransformation.java b/src/main/java/org/codehaus/groovy/ast/MixinASTTransformation.java
index 99c0286ece..61009b8950 100644
--- a/src/main/java/org/codehaus/groovy/ast/MixinASTTransformation.java
+++ b/src/main/java/org/codehaus/groovy/ast/MixinASTTransformation.java
@@ -18,7 +18,6 @@
  */
 package org.codehaus.groovy.ast;
 
-import groovy.lang.Mixin;
 import org.codehaus.groovy.ast.expr.ClassExpression;
 import org.codehaus.groovy.ast.expr.Expression;
 import org.codehaus.groovy.ast.expr.ListExpression;
@@ -43,7 +42,8 @@ import static org.objectweb.asm.Opcodes.ACC_SYNTHETIC;
 @Deprecated
 @GroovyASTTransformation(phase = CompilePhase.CANONICALIZATION)
 public class MixinASTTransformation extends AbstractASTTransformation {
-    private static final ClassNode MY_TYPE = make(Mixin.class);
+    @SuppressWarnings("deprecation")
+    private static final ClassNode MY_TYPE = make(groovy.lang.Mixin.class);
 
     @Override
     public void visit(ASTNode[] nodes, SourceUnit source) {