From e26d82f4d58dc18014867ff89254f057762a4a12 Mon Sep 17 00:00:00 2001 From: John Cortell Date: Thu, 22 Apr 2010 22:47:57 +0000 Subject: [PATCH] Minor optimization --- .../cdt/debug/gdbjtag/core/GDBJtagDSFFinalLaunchSequence.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/GDBJtagDSFFinalLaunchSequence.java b/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/GDBJtagDSFFinalLaunchSequence.java index 1b05c86f69b..8d818512981 100644 --- a/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/GDBJtagDSFFinalLaunchSequence.java +++ b/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/GDBJtagDSFFinalLaunchSequence.java @@ -71,7 +71,7 @@ public class GDBJtagDSFFinalLaunchSequence extends Sequence { /** utility method; cuts down on clutter */ private void queueCommands(List commands, RequestMonitor rm) { - if (commands.size() > 0) { + if (!commands.isEmpty()) { fCommandControl.queueCommand( new CLICommand(fCommandControl.getContext(), composeCommand(commands)), new DataRequestMonitor(getExecutor(), rm));