Skip to content

Commit

Permalink
Use pattern matching in BaseHelpSystem
Browse files Browse the repository at this point in the history
  • Loading branch information
akurtakov committed Dec 17, 2024
1 parent 569c2a6 commit 3f20ca2
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,7 @@ public static void runLiveHelp(String pluginID, String className, String arg) {
Class<?> c = bundle.loadClass(className);
Object o = c.getDeclaredConstructor().newInstance();
//Runnable runnable = null;
if (o instanceof ILiveHelpAction) {
ILiveHelpAction helpExt = (ILiveHelpAction) o;
if (o instanceof ILiveHelpAction helpExt) {
if (arg != null)
helpExt.setInitializationString(arg);
Thread runnableLiveHelp = new Thread(helpExt);
Expand Down

0 comments on commit 3f20ca2

Please sign in to comment.