From 75cd9e2f0323ba48991a55af079039574a2247f6 Mon Sep 17 00:00:00 2001 From: brutzman <brutzman@nps.edu> Date: Wed, 14 Aug 2024 13:29:41 -0700 Subject: [PATCH] explanatory comment --- examples/src/UdpExamples/UnicastUdpReceiver.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/src/UdpExamples/UnicastUdpReceiver.java b/examples/src/UdpExamples/UnicastUdpReceiver.java index 7bc05fb2b3..a6e3acc6f0 100644 --- a/examples/src/UdpExamples/UnicastUdpReceiver.java +++ b/examples/src/UdpExamples/UnicastUdpReceiver.java @@ -51,7 +51,7 @@ public class UnicastUdpReceiver DatagramPacket receivePacket = new DatagramPacket(byteArray, byteArray.length); ByteArrayInputStream bais = new ByteArrayInputStream(byteArray); - DataInputStream dis = new DataInputStream(bais); + DataInputStream dis = new DataInputStream(bais); boolean isEvenParity; int packetCount = 0; @@ -102,7 +102,7 @@ public class UnicastUdpReceiver finally // clean up prior to exit, don't want to leave behind zombie socket { if (udpSocket != null) - udpSocket.close(); + udpSocket.close(); // making sure the perhaps-scarce resource is released System.out.println(UnicastUdpReceiver.class.getName() + " complete."); // all done } } -- GitLab