HCOLL-284 better assert-independent bounds checking

This commit is contained in:
leventov
2014-12-31 06:46:22 +07:00
parent c9224cd690
commit 0d14d7fc78
4 changed files with 63 additions and 48 deletions
@@ -240,7 +240,7 @@ final class SerializationBuilder<E> implements Cloneable, Serializable {
} else if (copyingInterop == CopyingInterop.FROM_WRITER) {
this.maxSize = maxSize;
metaInteropProvider(CopyingMetaBytesInterop
.<E, BytesWriter<E>>providerForBytesWriter(instancesAreMutable, maxSize));
.<E, BytesWriter<E>>providerForBytesWriter(instancesAreMutable));
}
return this;
}