diff options
author | Alex Blewitt | 2016-04-18 08:07:43 +0000 |
---|---|---|
committer | Alex Blewitt | 2016-04-18 22:15:05 +0000 |
commit | 809598db9dcc078cc4d7cffd4da3d0fc0b0716a3 (patch) | |
tree | e9d58143907e0396806f1f2170f4942db8c0c013 /launch/org.eclipse.cdt.launch | |
parent | 135bdd42941dafc9afd3e00dbdad8c334d065dc2 (diff) | |
download | org.eclipse.cdt-809598db9dcc078cc4d7cffd4da3d0fc0b0716a3.tar.gz org.eclipse.cdt-809598db9dcc078cc4d7cffd4da3d0fc0b0716a3.tar.xz org.eclipse.cdt-809598db9dcc078cc4d7cffd4da3d0fc0b0716a3.zip |
Bug 491945 - Remove new String()
Occurrences of `new String()` have been replaced with the equivalent `""` and
additional NON-NLS tags have been inserted in where appropriate.
Change-Id: I54cf71dcd0d5a92a675a71166d66949533de502b
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
Diffstat (limited to 'launch/org.eclipse.cdt.launch')
-rw-r--r-- | launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CEnvironmentTab.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CEnvironmentTab.java b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CEnvironmentTab.java index 9d443237e20..70967c6fca4 100644 --- a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CEnvironmentTab.java +++ b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CEnvironmentTab.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2005, 2012 QNX Software Systems and others. + * Copyright (c) 2005, 2016 QNX Software Systems and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -255,7 +255,7 @@ public class CEnvironmentTab extends CLaunchConfigurationTab { } public String get() { - String result = new String(); + String result = ""; // $NON-NLS-1$ Object[] entries = fElements.entrySet().toArray(); for (int i = 0; i < entries.length; ++i) result += entries[i].toString() + '\n'; @@ -366,7 +366,7 @@ public class CEnvironmentTab extends CLaunchConfigurationTab { } protected void newEntry() { - EntryDialog dialog = new EntryDialog(new String(), new String(), false); + EntryDialog dialog = new EntryDialog("", "", false); // $NON-NLS-1$ // $NON-NLS-2$ if (dialog.open() == Window.OK) { fElements.setProperty(dialog.getName(), dialog.getValue()); fVariableList.refresh(); |