diff options
author | Lars Vogel | 2019-10-01 09:30:17 +0000 |
---|---|---|
committer | Lars Vogel | 2019-10-01 10:28:15 +0000 |
commit | c01c68a4768a6f24a671985e3cc1acaddc38a976 (patch) | |
tree | 3ed8bc60e305c1508f9faf8d6698b6e851c9ae51 | |
parent | 0259f11848482068e4f8d701301c5ee0aa3fc00a (diff) | |
download | rt.equinox.framework-c01c68a4768a6f24a671985e3cc1acaddc38a976.tar.gz rt.equinox.framework-c01c68a4768a6f24a671985e3cc1acaddc38a976.tar.xz rt.equinox.framework-c01c68a4768a6f24a671985e3cc1acaddc38a976.zip |
Minor - Use Boolean.parseBoolean instead of Boolean.valueOfI20191007-1800I20191007-0625I20191007-0430I20191006-1800I20191006-0600I20191003-1800I20191002-1800I20191002-0100I20191001-1800
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.java | 5 |
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 |