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 2019/04/19 01:43:51 UTC

[groovy] 10/17: fix unintended illegal access

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

commit 2d9b3e1f8eb1a064154924f263ef28b574015234
Author: Paul King <pa...@asert.com.au>
AuthorDate: Thu Apr 18 20:57:51 2019 +1000

    fix unintended illegal access
---
 src/test/gls/enums/EnumTest.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/gls/enums/EnumTest.groovy b/src/test/gls/enums/EnumTest.groovy
index 684f55e..4f538d2 100644
--- a/src/test/gls/enums/EnumTest.groovy
+++ b/src/test/gls/enums/EnumTest.groovy
@@ -182,7 +182,7 @@ class EnumTest extends CompilableTestSupport {
     // the fix for GROOVY-3161
     def void testStaticEnumFieldWithEnumValues() {
         def allColors = GroovyColors3161.ALL_COLORS
-        assert allColors.size == 3
+        assert allColors.size() == 3
         assert allColors[0] == GroovyColors3161.red
         assert allColors[1] == GroovyColors3161.blue
         assert allColors[2] == GroovyColors3161.green