groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject [groovy] branch master updated: refactor: don't weaken method access during override
Date Tue, 30 Apr 2019 08:23:08 GMT
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


The following commit(s) were added to refs/heads/master by this push:
     new 71cf20a  refactor: don't weaken method access during override
71cf20a is described below

commit 71cf20addb611bb8d097a59e395fd20bc7f31772
Author: Paul King <paulk@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"
         """
-        
     }
 }
-


Mime
View raw message