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 2017/12/31 05:44:11 UTC
groovy git commit: Fix the license header
Repository: groovy
Updated Branches:
refs/heads/master 0c34922e0 -> 5fc830940
Fix the license header
Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/5fc83094
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/5fc83094
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/5fc83094
Branch: refs/heads/master
Commit: 5fc830940cc0afb68a59bda2496bed3d69ba148f
Parents: 0c34922
Author: sunlan <su...@apache.org>
Authored: Sun Dec 31 13:44:06 2017 +0800
Committer: sunlan <su...@apache.org>
Committed: Sun Dec 31 13:44:06 2017 +0800
----------------------------------------------------------------------
.../src/test/resources/bugs/BUG-GROOVY-8426.groovy | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/groovy/blob/5fc83094/subprojects/parser-antlr4/src/test/resources/bugs/BUG-GROOVY-8426.groovy
----------------------------------------------------------------------
diff --git a/subprojects/parser-antlr4/src/test/resources/bugs/BUG-GROOVY-8426.groovy b/subprojects/parser-antlr4/src/test/resources/bugs/BUG-GROOVY-8426.groovy
index 59404a4..aa0e4d4 100644
--- a/subprojects/parser-antlr4/src/test/resources/bugs/BUG-GROOVY-8426.groovy
+++ b/subprojects/parser-antlr4/src/test/resources/bugs/BUG-GROOVY-8426.groovy
@@ -1,9 +1,3 @@
-import org.codehaus.groovy.ast.ClassNode
-import org.codehaus.groovy.ast.MethodNode
-import org.codehaus.groovy.ast.builder.AstBuilder
-import org.codehaus.groovy.ast.stmt.BlockStatement
-import static org.codehaus.groovy.control.CompilePhase.CONVERSION
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -23,6 +17,13 @@ import static org.codehaus.groovy.control.CompilePhase.CONVERSION
* under the License.
*/
+import org.codehaus.groovy.ast.ClassNode
+import org.codehaus.groovy.ast.MethodNode
+import org.codehaus.groovy.ast.builder.AstBuilder
+import org.codehaus.groovy.ast.stmt.BlockStatement
+import static org.codehaus.groovy.control.CompilePhase.CONVERSION
+
+
class Groovy8426Test {
void testMethodBlockStatement() {
def result = new AstBuilder().buildFromString CONVERSION, false, '''