Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2019-10-01 09:30:17 +0000
committerLars Vogel2019-10-01 10:28:15 +0000
commitc01c68a4768a6f24a671985e3cc1acaddc38a976 (patch)
tree3ed8bc60e305c1508f9faf8d6698b6e851c9ae51
parent0259f11848482068e4f8d701301c5ee0aa3fc00a (diff)
downloadrt.equinox.framework-c01c68a4768a6f24a671985e3cc1acaddc38a976.tar.gz
rt.equinox.framework-c01c68a4768a6f24a671985e3cc1acaddc38a976.tar.xz
rt.equinox.framework-c01c68a4768a6f24a671985e3cc1acaddc38a976.zip
This is more efficient and fixes a Sonar warning Change-Id: Id6fe50b7e2162c823f2ff320121d7ebfd4b6d7ea Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--bundles/org.eclipse.osgi/container/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java
index 35154f84d..d3d81e0ca 100644
--- a/bundles/org.eclipse.osgi/container/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java
+++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java
@@ -390,9 +390,10 @@ public class EclipseStarter {
return Integer.valueOf(0);
try {
if (appLauncher == null) {
- boolean launchDefault = Boolean.valueOf(getProperty(PROP_APPLICATION_LAUNCHDEFAULT, "true")).booleanValue(); //$NON-NLS-1$
+
+ boolean launchDefault = Boolean.parseBoolean(getProperty(PROP_APPLICATION_LAUNCHDEFAULT, "true")); //$NON-NLS-1$
// create the ApplicationLauncher and register it as a service
- appLauncher = new EclipseAppLauncher(context, Boolean.valueOf(getProperty(PROP_ALLOW_APPRELAUNCH)).booleanValue(), launchDefault, log, equinoxConfig);
+ appLauncher = new EclipseAppLauncher(context, Boolean.parseBoolean(getProperty(PROP_ALLOW_APPRELAUNCH)), launchDefault, log, equinoxConfig);
appLauncherRegistration = context.registerService(ApplicationLauncher.class.getName(), appLauncher, null);
// must start the launcher AFTER service restration because this method
// blocks and runs the application on the current thread. This method

Back to the top