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 2019/01/25 17:38:54 UTC

[groovy] branch GROOVY_2_5_X updated: Avoid groovy 3 syntax to fix the failing build

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

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


The following commit(s) were added to refs/heads/GROOVY_2_5_X by this push:
     new 83b1299  Avoid groovy 3 syntax to fix the failing build
83b1299 is described below

commit 83b129923a9ccf0430c8a7b2c78ea1ff8efa6502
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sat Jan 26 01:38:43 2019 +0800

    Avoid groovy 3 syntax to fix the failing build
---
 src/test/groovy/bugs/Groovy4287Bug.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/groovy/bugs/Groovy4287Bug.groovy b/src/test/groovy/bugs/Groovy4287Bug.groovy
index 9f3e79c..1b2c535 100644
--- a/src/test/groovy/bugs/Groovy4287Bug.groovy
+++ b/src/test/groovy/bugs/Groovy4287Bug.groovy
@@ -32,6 +32,6 @@ class Groovy4287Bug extends GroovyTestCase {
     }
 
     static void runScript(String path) {
-        GroovyStarter.main(new String[] { "--main", "groovy.ui.GroovyMain", path })
+        GroovyStarter.main(["--main", "groovy.ui.GroovyMain", path] as String[])
     }
 }