Skip to content
Snippets Groups Projects
Commit 3c51391e authored by brutzman's avatar brutzman
Browse files

silence warning, use explicit class

parent 4013349e
No related branches found
No related tags found
No related merge requests found
...@@ -369,9 +369,9 @@ public class AllPduSender ...@@ -369,9 +369,9 @@ public class AllPduSender
// https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/tree/master/assignments/src/MV3500Cohort2018JulySeptember/projects/LoeffelmanSeverson // https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/tree/master/assignments/src/MV3500Cohort2018JulySeptember/projects/LoeffelmanSeverson
CommentPdu newCommentPdu = new CommentPdu(); CommentPdu newCommentPdu = new CommentPdu();
List<VariableDatum> payloadList = new ArrayList<>(); ArrayList<VariableDatum> payloadList = new ArrayList<>();
List<String> commentsList = new ArrayList<>(); ArrayList<String> commentsList = new ArrayList<>();
commentsList.add("Hello CommentPDU"); commentsList.add("Hello CommentPDU");
commentsList.add("Here is a second line of text in this comment."); commentsList.add("Here is a second line of text in this comment.");
...@@ -381,7 +381,6 @@ public class AllPduSender ...@@ -381,7 +381,6 @@ public class AllPduSender
for (String comment : commentsList) for (String comment : commentsList)
{ {
VariableDatum newVariableDatum = new VariableDatum(); VariableDatum newVariableDatum = new VariableDatum();
newVariableDatum.setVariableDatumValue (comment.getBytes()); // conversion newVariableDatum.setVariableDatumValue (comment.getBytes()); // conversion
newVariableDatum.setVariableDatumLengthInBytes(comment.getBytes().length); // also available in bits, see spec and javadoc newVariableDatum.setVariableDatumLengthInBytes(comment.getBytes().length); // also available in bits, see spec and javadoc
// alternatively, you do not need to set this and the marshaller will figure it out from the byte array // alternatively, you do not need to set this and the marshaller will figure it out from the byte array
......
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