Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public GuiAction createLambda(GuiAction guiAction, T methodParameter, IGuiRefres

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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public Object getFilterObject(GuiActionFilter actionFilter) throws HopException
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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ public void testAddEventExceptions() {
// 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 -> {}, ""));
}

Expand All @@ -110,7 +111,7 @@ public void testFireEventExceptions() {
//
assertThrows(RuntimeException.class, () -> events.fire());
assertThrows(RuntimeException.class, () -> events.fire(""));
assertThrows(RuntimeException.class, () -> events.fire(null));
assertThrows(RuntimeException.class, () -> events.fire((Object[]) null));
}

@Test
Expand Down
Loading