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 /dsf-gdb | |
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 'dsf-gdb')
2 files changed, 4 insertions, 4 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/commands/MICommand.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/commands/MICommand.java index b3fa1da8153..3d7de02ab53 100644 --- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/commands/MICommand.java +++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/commands/MICommand.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2015 QNX Software Systems and others. + * Copyright (c) 2000, 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 @@ -33,7 +33,7 @@ public class MICommand<V extends MIInfo> implements ICommand<V> { List<Adjustable> fOptions = new ArrayList<>(); List<Adjustable> fParameters = new ArrayList<>(); - String fOperation = new String(); + String fOperation = ""; // $NON-NLS-1$ IDMContext fCtx; /* diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/commands/MIDataDisassemble.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/commands/MIDataDisassemble.java index ae8109653be..16a0afc81b8 100644 --- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/commands/MIDataDisassemble.java +++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/commands/MIDataDisassemble.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2014 QNX Software Systems and others. + * Copyright (c) 2000, 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 @@ -115,7 +115,7 @@ public class MIDataDisassemble extends MICommand<MIDataDisassembleInfo> { if (parameters != null && parameters.length > 0) { return "-- " + parameters[0]; //$NON-NLS-1$ } - return new String(); + return ""; // $NON-NLS-1$ } @Override |