Description
It compares if the dimensionCount is larger than PointValues.MAX_NUM_BYTES while this constant should be compared to dimensionNumBytes instead?
So this if statement:
if (dimensionCount > PointValues.MAX_NUM_BYTES) { throw new IllegalArgumentException("dimensionNumBytes must be <= " + PointValues.MAX_NUM_BYTES + "; got " + dimensionNumBytes); }
Should be:
if (dimensionNumBytes > PointValues.MAX_NUM_BYTES) { throw new IllegalArgumentException("dimensionNumBytes must be <= " + PointValues.MAX_NUM_BYTES + "; got " + dimensionNumBytes); }