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 2020/08/29 10:08:06 UTC

[groovy] branch GROOVY_2_5_X updated: fix test for 2.5

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

paulk 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 0f6f8b9  fix test for 2.5
0f6f8b9 is described below

commit 0f6f8b9302ad1523aee17475d4ebcc5aaf4fd0ab
Author: Paul King <pa...@asert.com.au>
AuthorDate: Sat Aug 29 20:07:54 2020 +1000

    fix test for 2.5
---
 src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java b/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
index 200905e..1d4f811 100644
--- a/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
+++ b/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
@@ -11887,7 +11887,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
      * Otherwise, a new array containing the reversed items is produced.
      *
      * <pre class="groovyTestCase">
-     * def array = new Object[] {1,2,3}
+     * def array = [1,2,3] as Object[]
      * def yarra = array.reverse(true)
      * assert array == 3..1
      * assert yarra == 3..1