diff --git a/examples/src/OpenDis7Examples/AllPduReceiver.java b/examples/src/OpenDis7Examples/AllPduReceiver.java index 9b2eff5bd8f2558718d194cdc3f878c03ab6b43d..f95ee9991e6b89b0f2612d55667e001e0ff642bc 100644 --- a/examples/src/OpenDis7Examples/AllPduReceiver.java +++ b/examples/src/OpenDis7Examples/AllPduReceiver.java @@ -45,7 +45,7 @@ public class AllPduReceiver socket.receive(packet); - Pdu pdu = factory.createPdu(packet.getData()); + Pdu pdu = factory.createPdu(packet.getData()); // packet.getData() returns byte[] array data buffer if (pdu != null) { DISPDUType currentPduType = pdu.getPduType(); //short currentPduType = pdu.getPduType(); @@ -58,7 +58,7 @@ public class AllPduReceiver if (currentPduType.getValue() < 10) message.append(" "); // column spacing message.append(currentPduType.getValue()); - String currentPduTypePadded = String.format("%-34s", currentPduType); // - indicates right padding of whitespace + String currentPduTypePadded = String.format("%-34s", currentPduType); // - indicates right padding of whitespace message.append(" " ).append(currentPduTypePadded); String currentPduTypeNamePadded = String.format("%-49s", currentPduTypeName); // - indicates right padding of whitespace message.append(" of type ").append(currentPduTypeNamePadded); // package.class name