groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject [4/5] groovy git commit: Trivial refactoring: remove redundant character escape
Date Mon, 19 Feb 2018 19:44:00 GMT
Trivial refactoring: remove redundant character escape

(cherry picked from commit daadd6e)


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

Branch: refs/heads/GROOVY_2_5_X
Commit: 301f8aa74fbaae4282f9206396eec5145c1ffd64
Parents: 83b0ce6
Author: danielsun1106 <realbluesun@hotmail.com>
Authored: Tue Feb 20 03:19:29 2018 +0800
Committer: danielsun1106 <realbluesun@hotmail.com>
Committed: Tue Feb 20 03:43:39 2018 +0800

----------------------------------------------------------------------
 src/main/java/org/codehaus/groovy/classgen/Verifier.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/301f8aa7/src/main/java/org/codehaus/groovy/classgen/Verifier.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/codehaus/groovy/classgen/Verifier.java b/src/main/java/org/codehaus/groovy/classgen/Verifier.java
index aad5940..2e5c851 100644
--- a/src/main/java/org/codehaus/groovy/classgen/Verifier.java
+++ b/src/main/java/org/codehaus/groovy/classgen/Verifier.java
@@ -364,7 +364,7 @@ public class Verifier implements GroovyClassVisitor, Opcodes {
                         if (BytecodeHelper.isClassLiteralPossible(node) || BytecodeHelper.isSameCompilationUnit(classNode,
node)) {
                             BytecodeHelper.visitClassLiteral(mv, node);
                         } else {
-                            mv.visitMethodInsn(INVOKESTATIC, classInternalName, "$get$$class$"
+ classInternalName.replaceAll("\\/", "\\$"), "()Ljava/lang/Class;", false);
+                            mv.visitMethodInsn(INVOKESTATIC, classInternalName, "$get$$class$"
+ classInternalName.replaceAll("/", "\\$"), "()Ljava/lang/Class;", false);
                         }
                         Label l1 = new Label();
                         mv.visitJumpInsn(IF_ACMPEQ, l1);


Mime
View raw message