Skip to content

Commit 9636c7e

Browse files
committed
Use pattern matching in BaseHelpSystem
1 parent 35bd0d7 commit 9636c7e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ua/org.eclipse.help.base/src/org/eclipse/help/internal/base/BaseHelpSystem.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,7 @@ public static void runLiveHelp(String pluginID, String className, String arg) {
324324
Class<?> c = bundle.loadClass(className);
325325
Object o = c.getDeclaredConstructor().newInstance();
326326
//Runnable runnable = null;
327-
if (o instanceof ILiveHelpAction) {
328-
ILiveHelpAction helpExt = (ILiveHelpAction) o;
327+
if (o instanceof ILiveHelpAction helpExt) {
329328
if (arg != null)
330329
helpExt.setInitializationString(arg);
331330
Thread runnableLiveHelp = new Thread(helpExt);

0 commit comments

Comments
 (0)