From 8a71f2a49ba35068e13424faba0086ee9f4d9b14 Mon Sep 17 00:00:00 2001
From: brutzman <brutzman@nps.edu>
Date: Fri, 10 Jun 2022 22:36:42 -0700
Subject: [PATCH] commented out problematic code block, TODO follow PDU factory
 pattern instead.

---
 .../MV3500Cohort2022MayJune/homework2/Royer/Homework2.java   | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/assignments/src/MV3500Cohort2022MayJune/homework2/Royer/Homework2.java b/assignments/src/MV3500Cohort2022MayJune/homework2/Royer/Homework2.java
index 24e5d23e34..ae85bff070 100644
--- a/assignments/src/MV3500Cohort2022MayJune/homework2/Royer/Homework2.java
+++ b/assignments/src/MV3500Cohort2022MayJune/homework2/Royer/Homework2.java
@@ -202,18 +202,19 @@ public class Homework2
             // Where is my entity?  Insert changes in position; this sample only changes X position.
             entityStatePdu_1.getEntityLocation().setX(entityStatePdu_1.getEntityLocation().getX() + 1.0); // 1m per timestep
 
+/* TODO. don't use this problematic code block, follow PDU factory pattern instead.
             DataOutputStream data_input = new DataOutputStream();
             data_input.writeChars("Entity on fire");
             
             SetDataPdu entity_on_fire_pdu = new SetDataPdu();
-            List<VariableDatum> edata = new ArrayList<VariableDatum>();
+            List<VariableDatum> edata = new ArrayList<>();
             VariableDatum datum = new VariableDatum();
             datum.marshal(data_input);
             edata.add(datum);
             entity_on_fire_pdu.setVariableDatums(edata);
             disChannel.sendSinglePdu(entity_on_fire_pdu);
             data_input.close();
-            
+*/
             // make your reports: narrative code for CommentPdu here (set all to empty strings to avoid sending)
             narrativeMessage1 = "MV3500 ExampleSimulationProgram";
             narrativeMessage2 = "runSimulation() loop " + simulationLoopCount;
-- 
GitLab