diff --git a/examples/src/UdpExamples/UnicastUdpReceiver.java b/examples/src/UdpExamples/UnicastUdpReceiver.java index 7bc05fb2b31412a200efdedf9aaacbad60771465..a6e3acc6f05a3b92374229bc0700700e47794f75 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 } }