diff --git a/src-generated/edu/nps/moves/dis7/pdus/AggregateMarking.java b/src-generated/edu/nps/moves/dis7/pdus/AggregateMarking.java index f515f1be19..303629f446 100644 --- a/src-generated/edu/nps/moves/dis7/pdus/AggregateMarking.java +++ b/src-generated/edu/nps/moves/dis7/pdus/AggregateMarking.java @@ -1,10 +1,10 @@ -/** - * Copyright (c) 2008-2023, MOVES Institute, Naval Postgraduate School (NPS). All rights reserved. - * This work is provided under a BSD-style open-source license, see project - * license.html and license.txt - */ -// header autogenerated using string template dis7javalicense.txt - +/** + * Copyright (c) 2008-2023, MOVES Institute, Naval Postgraduate School (NPS). All rights reserved. + * This work is provided under a BSD-style open-source license, see project + * license.html and license.txt + */ +// header autogenerated using string template dis7javalicense.txt + package edu.nps.moves.dis7.pdus; @@ -20,10 +20,10 @@ public class AggregateMarking extends Object implements Serializable { /** The character set uid 45 */ - protected EntityMarkingCharacterSet characterSet = EntityMarkingCharacterSet.values()[0]; + protected EntityMarkingCharacterSet characterSet = EntityMarkingCharacterSet.values()[0]; /** The characters */ - protected byte[] characters = new byte[31]; + protected byte[] characters = new byte[31]; /** Constructor creates and configures a new instance object */ @@ -31,10 +31,10 @@ public AggregateMarking() { } - /** - * Returns size of this serialized (marshalled) object in bytes - * @see https://en.wikipedia.org/wiki/Marshalling_(computer_science) - * @return serialized size in bytes + /** + * Returns size of this serialized (marshalled) object in bytes + * @see https://en.wikipedia.org/wiki/Marshalling_(computer_science) + * @return serialized size in bytes */ public synchronized int getMarshalledSize() { @@ -53,30 +53,30 @@ public synchronized int getMarshalledSize() * @param pCharacterSet new value of interest * @return same object to permit progressive setters */ public synchronized AggregateMarking setCharacterSet(EntityMarkingCharacterSet pCharacterSet) -{ +{ characterSet = pCharacterSet; return this; } /** Getter for {@link AggregateMarking#characterSet} * @return value of interest */ public EntityMarkingCharacterSet getCharacterSet() -{ - return characterSet; +{ + return characterSet; } /** Setter for {@link AggregateMarking#characters} * @param pCharacters new value of interest * @return same object to permit progressive setters */ public synchronized AggregateMarking setCharacters(byte[] pCharacters) -{ - characters = pCharacters; +{ + characters = Arrays.copyOf(pCharacters, characters.length); return this; } /** Getter for {@link AggregateMarking#characters} * @return value of interest */ public byte[] getCharacters() -{ - return characters; +{ + return characters; } /** @@ -87,17 +87,17 @@ public byte[] getCharacters() */ public synchronized void marshal(DataOutputStream dos) throws Exception { - try + try { characterSet.marshal(dos); for (int idx = 0; idx < characters.length; idx++) dos.writeByte(characters[idx]); - } + } catch(Exception e) - { - System.err.println(e); + { + System.err.println(e); } } @@ -112,20 +112,20 @@ public synchronized void marshal(DataOutputStream dos) throws Exception public synchronized int unmarshal(DataInputStream dis) throws Exception { int uPosition = 0; - try + try { characterSet = EntityMarkingCharacterSet.unmarshalEnum(dis); uPosition += characterSet.getMarshalledSize(); for (int idx = 0; idx < characters.length; idx++) characters[idx] = dis.readByte(); uPosition += (characters.length * 1); - } + } catch(Exception e) - { - System.err.println(e); + { + System.err.println(e); } return getMarshalledSize(); -} +} /** * Packs an object into the ByteBuffer. @@ -168,7 +168,7 @@ public synchronized int unmarshal(java.nio.ByteBuffer byteBuffer) throws Excepti System.err.println("*** buffer underflow error while unmarshalling " + this.getClass().getName()); } return getMarshalledSize(); -} +} /* * Override of default equals method. Calls equalsImpl() for content comparison.