From e233689f838fe0a45e54ac7b858de2615b7f1745 Mon Sep 17 00:00:00 2001 From: Paul King Date: Sun, 22 Dec 2024 12:00:09 +1000 Subject: [PATCH] minor refactor: remove deprecation warning --- .../groovy/groovy/swing/factory/RichActionWidgetFactory.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/groovy-swing/src/main/groovy/groovy/swing/factory/RichActionWidgetFactory.groovy b/subprojects/groovy-swing/src/main/groovy/groovy/swing/factory/RichActionWidgetFactory.groovy index b0ffe59ba10..f79d8134112 100644 --- a/subprojects/groovy-swing/src/main/groovy/groovy/swing/factory/RichActionWidgetFactory.groovy +++ b/subprojects/groovy-swing/src/main/groovy/groovy/swing/factory/RichActionWidgetFactory.groovy @@ -51,7 +51,7 @@ class RichActionWidgetFactory extends AbstractFactory { try { if (value instanceof GString) value = value as String if (value == null) { - return klass.newInstance() + return klass.getConstructor().newInstance() } else if (value instanceof Action) { return actionCtor.newInstance(value) } else if (value instanceof Icon) {