1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Fixed warnings

This commit is contained in:
John Cortell 2010-05-06 18:55:56 +00:00
parent 8f418be80d
commit e09763e581
2 changed files with 4 additions and 1 deletions

View file

@ -373,6 +373,7 @@ public class GDBJtagDSFFinalLaunchSequence extends Sequence {
* Hook up to remote target
*/
new Step() {
@SuppressWarnings("deprecation")
@Override
public void execute(RequestMonitor rm) {
ILaunchConfiguration config = fLaunch.getLaunchConfiguration();

View file

@ -73,6 +73,7 @@ public class GDBJtagDebugger extends AbstractGDBCDIDebugger {
return new GDBJtagCommandFactory(miVersion);
}
@SuppressWarnings("deprecation")
protected void doStartSession(ILaunch launch, Session session, IProgressMonitor monitor) throws CoreException {
SubMonitor submonitor = SubMonitor.convert(monitor, 100);
@ -125,10 +126,11 @@ public class GDBJtagDebugger extends AbstractGDBCDIDebugger {
submonitor.subTask(Messages.getString("GDBJtagDebugger.2")); //$NON-NLS-1$
try {
if (gdbJtagDevice instanceof IGDBJtagConnection) {
URI connection = new URI(config.getAttribute(IGDBJtagConstants.ATTR_CONNECTION, "")); //$NON-NLS-1$
URI connection = new URI(config.getAttribute(IGDBJtagConstants.ATTR_CONNECTION, IGDBJtagConstants.DEFAULT_CONNECTION));
IGDBJtagConnection device = (IGDBJtagConnection)gdbJtagDevice;
device.doRemote(connection.getSchemeSpecificPart(), commands);
} else {
// use deprecated methods tied to TCP/IP
String ipAddress = config.getAttribute(IGDBJtagConstants.ATTR_IP_ADDRESS, ""); //$NON-NLS-1$
int portNumber = config.getAttribute(IGDBJtagConstants.ATTR_PORT_NUMBER, 0);
gdbJtagDevice.doRemote(ipAddress, portNumber, commands);