mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Use generics. Avoid unnecessary local
This commit is contained in:
parent
cfe83c4ed9
commit
43d9a2acb8
1 changed files with 4 additions and 6 deletions
|
@ -30,17 +30,15 @@ public class MacraigorUsb2Demon extends DefaultGDBJtagDeviceImpl {
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.debug.gdbjtag.core.jtagdevice.DefaultGDBJtagDeviceImpl#doDelay(int, java.util.Collection)
|
||||
*/
|
||||
public void doDelay(int delay, Collection commands) {
|
||||
String cmd = "monitor sleep " + String.valueOf(delay);
|
||||
super.addCmd(commands, cmd);
|
||||
public void doDelay(int delay, Collection<String> commands) {
|
||||
super.addCmd(commands, "monitor sleep " + String.valueOf(delay));
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.debug.gdbjtag.core.jtagdevice.DefaultGDBJtagDeviceImpl#doReset(java.util.Collection)
|
||||
*/
|
||||
public void doReset(Collection commands) {
|
||||
String cmd = "monitor resetrun";
|
||||
super.addCmd(commands, cmd);
|
||||
public void doReset(Collection<String> commands) {
|
||||
super.addCmd(commands, "monitor resetrun");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue