Skip to main content
summaryrefslogtreecommitdiffstats
path: root/jtag
diff options
context:
space:
mode:
authorJohn Cortell2010-05-06 13:51:58 -0400
committerJohn Cortell2010-05-06 13:51:58 -0400
commite699f8cfba1979fb780f26414f731bc1a46c91e2 (patch)
tree7b79a2aa32d6ebdd4f171ea4db2c5aabbb16fe9a /jtag
parent2f76ea4d10a78d06965a4973713ef6e20dc86a16 (diff)
downloadorg.eclipse.cdt-e699f8cfba1979fb780f26414f731bc1a46c91e2.tar.gz
org.eclipse.cdt-e699f8cfba1979fb780f26414f731bc1a46c91e2.tar.xz
org.eclipse.cdt-e699f8cfba1979fb780f26414f731bc1a46c91e2.zip
CDT has not moved up to Java 1.6. Can't use String.isEmpty()
Diffstat (limited to 'jtag')
-rw-r--r--jtag/org.eclipse.cdt.debug.gdbjtag.ui/src/org/eclipse/cdt/debug/gdbjtag/ui/GDBJtagDSFDebuggerTab.java4
-rw-r--r--jtag/org.eclipse.cdt.debug.gdbjtag.ui/src/org/eclipse/cdt/debug/gdbjtag/ui/GDBJtagDebuggerTab.java4
2 files changed, 4 insertions, 4 deletions
diff --git a/jtag/org.eclipse.cdt.debug.gdbjtag.ui/src/org/eclipse/cdt/debug/gdbjtag/ui/GDBJtagDSFDebuggerTab.java b/jtag/org.eclipse.cdt.debug.gdbjtag.ui/src/org/eclipse/cdt/debug/gdbjtag/ui/GDBJtagDSFDebuggerTab.java
index e55578d363..e84d9f3f2c 100644
--- a/jtag/org.eclipse.cdt.debug.gdbjtag.ui/src/org/eclipse/cdt/debug/gdbjtag/ui/GDBJtagDSFDebuggerTab.java
+++ b/jtag/org.eclipse.cdt.debug.gdbjtag.ui/src/org/eclipse/cdt/debug/gdbjtag/ui/GDBJtagDSFDebuggerTab.java
@@ -367,7 +367,7 @@ public class GDBJtagDSFDebuggerTab extends AbstractLaunchConfigurationTab {
useRemote.setSelection(useRemoteAttr);
savedJtagDevice = configuration.getAttribute(IGDBJtagConstants.ATTR_JTAG_DEVICE, "");
- if (savedJtagDevice.isEmpty()) {
+ if (savedJtagDevice.length() == 0) {
jtagDevice.select(0);
} else {
String storedAddress = ""; //$NON-NLS-1$
@@ -424,7 +424,7 @@ public class GDBJtagDSFDebuggerTab extends AbstractLaunchConfigurationTab {
savedJtagDevice = jtagDevice.getText();
configuration.setAttribute(IGDBJtagConstants.ATTR_JTAG_DEVICE, savedJtagDevice);
configuration.setAttribute(IGDBJtagConstants.ATTR_USE_REMOTE_TARGET, useRemote.getSelection());
- if (!savedJtagDevice.isEmpty()) {
+ if (savedJtagDevice.length() > 0) {
try {
IGDBJtagDevice device = findJtagDeviceByName(jtagDevice.getText()).getDevice();
if (device instanceof IGDBJtagConnection) {
diff --git a/jtag/org.eclipse.cdt.debug.gdbjtag.ui/src/org/eclipse/cdt/debug/gdbjtag/ui/GDBJtagDebuggerTab.java b/jtag/org.eclipse.cdt.debug.gdbjtag.ui/src/org/eclipse/cdt/debug/gdbjtag/ui/GDBJtagDebuggerTab.java
index 19687a996e..8a474df65d 100644
--- a/jtag/org.eclipse.cdt.debug.gdbjtag.ui/src/org/eclipse/cdt/debug/gdbjtag/ui/GDBJtagDebuggerTab.java
+++ b/jtag/org.eclipse.cdt.debug.gdbjtag.ui/src/org/eclipse/cdt/debug/gdbjtag/ui/GDBJtagDebuggerTab.java
@@ -459,7 +459,7 @@ public class GDBJtagDebuggerTab extends AbstractLaunchConfigurationTab {
useRemoteChanged();
savedJtagDevice = configuration.getAttribute(IGDBJtagConstants.ATTR_JTAG_DEVICE, ""); //$NON-NLS-1$
- if (savedJtagDevice.isEmpty()) {
+ if (savedJtagDevice.length() == 0) {
jtagDevice.select(0);
} else {
String storedAddress = ""; //$NON-NLS-1$
@@ -514,7 +514,7 @@ public class GDBJtagDebuggerTab extends AbstractLaunchConfigurationTab {
savedJtagDevice = jtagDevice.getText();
configuration.setAttribute(IGDBJtagConstants.ATTR_JTAG_DEVICE, savedJtagDevice);
configuration.setAttribute(IGDBJtagConstants.ATTR_USE_REMOTE_TARGET, useRemote.getSelection());
- if (!savedJtagDevice.isEmpty()) {
+ if (savedJtagDevice.length() > 0) {
try {
IGDBJtagDevice device = findJtagDeviceByName(jtagDevice.getText()).getDevice();
if (device instanceof IGDBJtagConnection) {

Back to the top