Skip to content
Permalink
Browse files
minor Javadoc changes.
  • Loading branch information
leerho committed Nov 15, 2021
1 parent 22aecc1 commit d48d3a482b2208cccff86bd87fe33f423f6ccaf0
Showing 1 changed file with 2 additions and 2 deletions.
@@ -24,7 +24,7 @@

/**
* Methods of serializing and deserializing arrays of the object version of primitive types of
* Number.
* Number. The array can be a mix of primitive object types.
*
* <p>This class serializes numbers with a leading byte (ASCII character) indicating the type.
* The class keeps the values byte aligned, even though only 3 bits are strictly necessary to
@@ -90,7 +90,7 @@ public byte[] serializeToByteArray(final Number[] items) {
mem.putByte(offsetBytes, DOUBLE_INDICATOR);
mem.putDouble(offsetBytes + 1, item.doubleValue());
offsetBytes += Byte.BYTES + Double.BYTES;
} else { // (item instanceof Float) 0- already checked poosibilities above
} else { // (item instanceof Float) 0- already checked possibilities above
mem.putByte(offsetBytes, FLOAT_INDICATOR);
mem.putFloat(offsetBytes + 1, item.floatValue());
offsetBytes += Byte.BYTES + Float.BYTES;

0 comments on commit d48d3a4

Please sign in to comment.