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/30 09:06:56 UTC

[groovy] 03/03: refactor: don't weaken method access during override

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 31131986f37a4e73841d6ada105216caefe513ff
Author: Paul King <pa...@asert.com.au>
AuthorDate: Tue Apr 30 18:22:53 2019 +1000

    refactor: don't weaken method access during override
---
 src/test/groovy/bugs/Groovy4922Bug.groovy | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/test/groovy/bugs/Groovy4922Bug.groovy b/src/test/groovy/bugs/Groovy4922Bug.groovy
index 9be282d..1767f33 100644
--- a/src/test/groovy/bugs/Groovy4922Bug.groovy
+++ b/src/test/groovy/bugs/Groovy4922Bug.groovy
@@ -18,7 +18,6 @@
  */
 package groovy.bugs
 
-
 class Groovy4922Bug extends GroovyTestCase {
     void testShouldNotThrowStackOverflow() {
         assertScript """
@@ -34,7 +33,7 @@ class Groovy4922Bug extends GroovyTestCase {
                 }
             }
             class Groovy4922BugChild extends Groovy4922BugSupport {
-                protected void someMethod(String parameter) {
+                void someMethod(String parameter) {
                     super.someMethod(parameter)
                 }
             }
@@ -42,7 +41,5 @@ class Groovy4922Bug extends GroovyTestCase {
             child.someMethod("value")
             assert child.support == "value"
         """
-        
     }
 }
-