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 17d1ce0243 minor refactor: avoid two jupiter warnings
17d1ce0243 is described below
commit 17d1ce02431025d5189efbd189855912d9ab110a
Author: Paul King <[email protected]>
AuthorDate: Sun Mar 15 17:51:06 2026 +1000
minor refactor: avoid two jupiter warnings
---
src/test/groovy/bugs/MethodDispatchBug.groovy | 2 +-
src/test/groovy/groovy/ClassTest.groovy | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/test/groovy/bugs/MethodDispatchBug.groovy
b/src/test/groovy/bugs/MethodDispatchBug.groovy
index a82426e9fc..6da53041b0 100644
--- a/src/test/groovy/bugs/MethodDispatchBug.groovy
+++ b/src/test/groovy/bugs/MethodDispatchBug.groovy
@@ -39,7 +39,7 @@ class MethodDispatchBug {
}
@Test
- def testBug() {
+ void testBug() {
def o = this;
assert "BB" == o.doit(true, true);
diff --git a/src/test/groovy/groovy/ClassTest.groovy
b/src/test/groovy/groovy/ClassTest.groovy
index f3dae2232d..fa6468d1ef 100644
--- a/src/test/groovy/groovy/ClassTest.groovy
+++ b/src/test/groovy/groovy/ClassTest.groovy
@@ -40,8 +40,8 @@ class ClassTest {
}
@Test
- def testClassesHaveSuperModiferSet() {
+ void testClassesHaveSuperModiferSet() {
assert java.lang.reflect.Modifier.isSynchronized(this.class.modifiers)
}
-}
\ No newline at end of file
+}