Skip to content

Commit

Permalink
minor refactor: remove deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
paulk-asert committed Dec 22, 2024
1 parent d3aabb2 commit e233689
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e233689

Please sign in to comment.