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>
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 7ee8a8c..3bc997e 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 @@ } - 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 @@ 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) {