1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-01 12:24:14 +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 {
//System.err.println("trying");
@SuppressWarnings("unchecked")
Enumeration portList = CommPortIdentifier.getPortIdentifiers();
Enumeration<CommPortIdentifier> portList = CommPortIdentifier.getPortIdentifiers();
//System.err.println("got port list");
while (portList.hasMoreElements()) {
CommPortIdentifier portId =
(CommPortIdentifier) portList.nextElement();
CommPortIdentifier portId = portList.nextElement();
//System.out.println(portId);
if (portId.getPortType() == CommPortIdentifier.PORT_SERIAL) {