Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2021-02-24 09:30:26 +0000
committerAlexander Kurtakov2021-03-15 20:48:01 +0000
commita53a2a2bb488f2d4fe7a6ef3a2d84c80e78cd154 (patch)
tree414d9ea30e264f5e50fb7b136f35964196bd4288
parent07dfe6be25579f1a3ecfe47b1fe327e561f762ea (diff)
downloadeclipse.platform.debug-a53a2a2bb488f2d4fe7a6ef3a2d84c80e78cd154.tar.gz
eclipse.platform.debug-a53a2a2bb488f2d4fe7a6ef3a2d84c80e78cd154.tar.xz
eclipse.platform.debug-a53a2a2bb488f2d4fe7a6ef3a2d84c80e78cd154.zip
Use parseBoolean directly in LaunchConfiguration
Avoid primitive parsing, done via JDT cleanup action Change-Id: I8ec6b5aaf6b696b5e931df1641d7fa79e267dda8 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchConfiguration.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchConfiguration.java b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchConfiguration.java
index 7ee8a8c1c..3bc997eb0 100644
--- a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchConfiguration.java
+++ b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchConfiguration.java
@@ -262,7 +262,7 @@ public class LaunchConfiguration extends PlatformObject implements ILaunchConfig
}
- boolean local = (Boolean.valueOf(localString)).booleanValue();
+ boolean local = Boolean.parseBoolean(localString);
IPath iPath = new Path(path);
String name = getSimpleName(iPath.lastSegment());
IContainer container = null;
@@ -601,7 +601,7 @@ public class LaunchConfiguration extends PlatformObject implements ILaunchConfig
Document doc = LaunchManager.getDocument();
Element node = doc.createElement(IConfigurationElementConstants.LAUNCH_CONFIGURATION);
doc.appendChild(node);
- node.setAttribute(IConfigurationElementConstants.LOCAL, (Boolean.valueOf(local)).toString());
+ node.setAttribute(IConfigurationElementConstants.LOCAL, Boolean.toString(local));
node.setAttribute(IConfigurationElementConstants.PATH, relativePath.toString());
return LaunchManager.serializeDocument(doc);
} catch (IOException ioe) {

Back to the top