This is an automated email from the ASF dual-hosted git repository.

hansva pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hop.git


The following commit(s) were added to refs/heads/main by this push:
     new 922e791921 Remove a compilation warning (#6294)
922e791921 is described below

commit 922e791921af07b4add346d4589d76e8a71dd759
Author: Nicolas Adment <[email protected]>
AuthorDate: Mon Jan 5 11:05:04 2026 +0100

    Remove a compilation warning (#6294)
---
 .../apache/hop/core/gui/plugin/action/GuiActionLambdaBuilder.java    | 2 +-
 .../java/org/apache/hop/ui/hopgui/context/BaseGuiContextHandler.java | 2 +-
 .../java/org/apache/hop/ui/core/bus/HopGuiEventsHandlerTest.java     | 5 +++--
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git 
a/core/src/main/java/org/apache/hop/core/gui/plugin/action/GuiActionLambdaBuilder.java
 
b/core/src/main/java/org/apache/hop/core/gui/plugin/action/GuiActionLambdaBuilder.java
index e2528b9ca5..1606cff072 100644
--- 
a/core/src/main/java/org/apache/hop/core/gui/plugin/action/GuiActionLambdaBuilder.java
+++ 
b/core/src/main/java/org/apache/hop/core/gui/plugin/action/GuiActionLambdaBuilder.java
@@ -67,7 +67,7 @@ public class GuiActionLambdaBuilder<T> {
 
       try {
         Method getInstanceMethod = 
guiPluginClass.getDeclaredMethod("getInstance");
-        guiPlugin = getInstanceMethod.invoke(null, null);
+        guiPlugin = getInstanceMethod.invoke(null, (Object[]) null);
       } catch (Exception nsme) {
         // On the rebound we'll try to simply construct a new instance...
         // This makes the plugins even simpler.
diff --git 
a/ui/src/main/java/org/apache/hop/ui/hopgui/context/BaseGuiContextHandler.java 
b/ui/src/main/java/org/apache/hop/ui/hopgui/context/BaseGuiContextHandler.java
index 07953ad091..1bcbda625b 100644
--- 
a/ui/src/main/java/org/apache/hop/ui/hopgui/context/BaseGuiContextHandler.java
+++ 
b/ui/src/main/java/org/apache/hop/ui/hopgui/context/BaseGuiContextHandler.java
@@ -124,7 +124,7 @@ public abstract class BaseGuiContextHandler<T extends 
IGuiContextHandler> {
       Object guiPlugin;
       try {
         Method getInstanceMethod = 
filterClass.getDeclaredMethod("getInstance");
-        guiPlugin = getInstanceMethod.invoke(null, null);
+        guiPlugin = getInstanceMethod.invoke(null, (Object[]) null);
       } catch (Exception nsme) {
         // On the rebound we'll try to simply construct a new instance...
         // This makes the plugins even simpler.
diff --git 
a/ui/src/test/java/org/apache/hop/ui/core/bus/HopGuiEventsHandlerTest.java 
b/ui/src/test/java/org/apache/hop/ui/core/bus/HopGuiEventsHandlerTest.java
index e5a11515d7..79661639da 100644
--- a/ui/src/test/java/org/apache/hop/ui/core/bus/HopGuiEventsHandlerTest.java
+++ b/ui/src/test/java/org/apache/hop/ui/core/bus/HopGuiEventsHandlerTest.java
@@ -100,7 +100,8 @@ public class HopGuiEventsHandlerTest {
     // We need at least 1 non-null event ID
     //
     assertThrows(RuntimeException.class, () -> 
events.addEventListener("guiId-1", e -> {}));
-    assertThrows(RuntimeException.class, () -> 
events.addEventListener("guiId-1", e -> {}, null));
+    assertThrows(
+        RuntimeException.class, () -> events.addEventListener("guiId-1", e -> 
{}, (String[]) null));
     assertThrows(RuntimeException.class, () -> 
events.addEventListener("guiId-1", e -> {}, ""));
   }
 
@@ -110,7 +111,7 @@ public class HopGuiEventsHandlerTest {
     //
     assertThrows(RuntimeException.class, () -> events.fire());
     assertThrows(RuntimeException.class, () -> events.fire(""));
-    assertThrows(RuntimeException.class, () -> events.fire(null));
+    assertThrows(RuntimeException.class, () -> events.fire((Object[]) null));
   }
 
   @Test

Reply via email to