mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
CDT has not moved up to Java 1.6. Can't use String.isEmpty()
This commit is contained in:
parent
2f76ea4d10
commit
e699f8cfba
2 changed files with 4 additions and 4 deletions
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue