mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-406 #58 Don't check size configurations of ChronicleMapBuilder, if existing file is accessed
This commit is contained in:
+1
-1
@@ -181,7 +181,7 @@ public final class SerializationBuilder<T> implements Cloneable, Serializable {
|
||||
|
||||
public long constantSizeBySample(T sampleObject) {
|
||||
long constantSize = serializationSize(sampleObject);
|
||||
if (sizeIsStaticallyKnown) {
|
||||
if (constantSizeMarshaller()) {
|
||||
long expectedConstantSize = constantSize();
|
||||
if (constantSize != expectedConstantSize) {
|
||||
throw new IllegalStateException("Although configuring constant size by sample " +
|
||||
|
||||
Reference in New Issue
Block a user