Skip to content
Snippets Groups Projects
Commit 5b859347 authored by Brutzman, Don's avatar Brutzman, Don
Browse files

strict casting of ArrayList to silence warning

parent bd81ae52
No related branches found
No related tags found
No related merge requests found
...@@ -103,7 +103,7 @@ public class AllPduReceiver ...@@ -103,7 +103,7 @@ public class AllPduReceiver
{ {
case COMMENT: case COMMENT:
CommentPdu commentPdu = (CommentPdu)nextPdu; // cast to precise type CommentPdu commentPdu = (CommentPdu)nextPdu; // cast to precise type
ArrayList<VariableDatum> payloadList = (ArrayList)commentPdu.getVariableDatums(); ArrayList<VariableDatum> payloadList = (ArrayList<VariableDatum>)commentPdu.getVariableDatums();
if (!payloadList.isEmpty()) if (!payloadList.isEmpty())
System.out.print (" messages: "); System.out.print (" messages: ");
for (VariableDatum variableDatum : payloadList) for (VariableDatum variableDatum : payloadList)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment