diff options
author | Alexander Kurtakov | 2021-11-13 06:49:12 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2021-11-13 07:11:34 +0000 |
commit | cadc4e5aa07f7166ee7de2011f39452a9675df08 (patch) | |
tree | 7a8f2992f8d5ab5eab5113c2e9af5882fa2e743a | |
parent | 434f8e2fffe3aaef56b360b15bfa6c012651d96e (diff) | |
download | eclipse.platform.ua-S4_22_0_RC1.tar.gz eclipse.platform.ua-S4_22_0_RC1.tar.xz eclipse.platform.ua-S4_22_0_RC1.zip |
Remove redundant null checkS4_22_0_RC2S4_22_0_RC1R4_22I20211124-1800I20211124-0600I20211123-1800I20211123-0750I20211123-0600I20211122-1800I20211122-0820I20211121-1800I20211121-0600I20211120-1800I20211120-0600I20211119-1800I20211117-1830I20211117-0920I20211117-0600I20211116-1800I20211116-0600I20211116-0000I20211115-0600I20211114-1800I20211114-0600I20211113-1800I20211113-0600R4_22_maintenance
Already covered by instanceOf check
Change-Id: I1c2f70d03c2e35f2a967471168ffe6dd5d122c87
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.ua/+/187704
-rw-r--r-- | org.eclipse.help.base/src/org/eclipse/help/internal/base/BaseHelpSystem.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.help.base/src/org/eclipse/help/internal/base/BaseHelpSystem.java b/org.eclipse.help.base/src/org/eclipse/help/internal/base/BaseHelpSystem.java index 729a1b23d..243ac604a 100644 --- a/org.eclipse.help.base/src/org/eclipse/help/internal/base/BaseHelpSystem.java +++ b/org.eclipse.help.base/src/org/eclipse/help/internal/base/BaseHelpSystem.java @@ -325,7 +325,7 @@ public final class BaseHelpSystem { Class<?> c = bundle.loadClass(className); Object o = c.getDeclaredConstructor().newInstance(); //Runnable runnable = null; - if (o != null && o instanceof ILiveHelpAction) { + if (o instanceof ILiveHelpAction) { ILiveHelpAction helpExt = (ILiveHelpAction) o; if (arg != null) helpExt.setInitializationString(arg); @@ -352,7 +352,7 @@ public final class BaseHelpSystem { /** * Check supplied token against stored token. Clears the stored token if * successful. - * + * * @param helpSessionToken * @return true if match successful */ |