1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-11-29 10:24:12 +01:00

Removed two warnings

This commit is contained in:
Cristian Maglie 2013-03-11 20:18:56 +01:00
parent 935ffec284
commit 5f6cbfbccd

View File

@ -561,11 +561,10 @@ public class Serial implements SerialPortEventListener {
try { try {
//System.err.println("trying"); //System.err.println("trying");
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
Enumeration portList = CommPortIdentifier.getPortIdentifiers(); Enumeration<CommPortIdentifier> portList = CommPortIdentifier.getPortIdentifiers();
//System.err.println("got port list"); //System.err.println("got port list");
while (portList.hasMoreElements()) { while (portList.hasMoreElements()) {
CommPortIdentifier portId = CommPortIdentifier portId = portList.nextElement();
(CommPortIdentifier) portList.nextElement();
//System.out.println(portId); //System.out.println(portId);
if (portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { if (portId.getPortType() == CommPortIdentifier.PORT_SERIAL) {