Skip to content

Commit 5f6cbfb

Browse files
committed
Removed two warnings
1 parent 935ffec commit 5f6cbfb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/src/processing/app/Serial.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -561,11 +561,10 @@ static public List<String> list() {
561561
try {
562562
//System.err.println("trying");
563563
@SuppressWarnings("unchecked")
564-
Enumeration portList = CommPortIdentifier.getPortIdentifiers();
564+
Enumeration<CommPortIdentifier> portList = CommPortIdentifier.getPortIdentifiers();
565565
//System.err.println("got port list");
566566
while (portList.hasMoreElements()) {
567-
CommPortIdentifier portId =
568-
(CommPortIdentifier) portList.nextElement();
567+
CommPortIdentifier portId = portList.nextElement();
569568
//System.out.println(portId);
570569

571570
if (portId.getPortType() == CommPortIdentifier.PORT_SERIAL) {

0 commit comments

Comments
 (0)