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/16 07:29:08 UTC

[groovy] 03/03: remove codenarc warnings

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

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

commit 241eca618c7bff385f9a80117ebddda24d13cdf6
Author: Paul King <pa...@asert.com.au>
AuthorDate: Tue Apr 16 17:28:41 2019 +1000

    remove codenarc warnings
---
 src/test/groovy/util/ProxyGeneratorTest.groovy | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/test/groovy/util/ProxyGeneratorTest.groovy b/src/test/groovy/util/ProxyGeneratorTest.groovy
index 53af084..5e165c2 100644
--- a/src/test/groovy/util/ProxyGeneratorTest.groovy
+++ b/src/test/groovy/util/ProxyGeneratorTest.groovy
@@ -93,7 +93,8 @@ class ProxyGeneratorTest extends GroovyTestCase {
         assert 3 == testClass[2]
         testClass[3] = 99
         assert 99 == testClass[3]
-        testClass.removeRange(1, 3)
+        testClass.removeAt(2)
+        testClass.removeAt(1)
         assert [1, 99, 5] == testClass
     }