From f8776281e7123cc3671a3e369c81c5fde76874a0 Mon Sep 17 00:00:00 2001 From: leventov Date: Sat, 13 Feb 2016 17:59:33 +0700 Subject: [PATCH] Make comment attribution more clear --- .../chronicle/map/impl/stage/entry/MapEntryStages.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/openhft/chronicle/map/impl/stage/entry/MapEntryStages.java b/src/main/java/net/openhft/chronicle/map/impl/stage/entry/MapEntryStages.java index 53b686a72..118c201b2 100644 --- a/src/main/java/net/openhft/chronicle/map/impl/stage/entry/MapEntryStages.java +++ b/src/main/java/net/openhft/chronicle/map/impl/stage/entry/MapEntryStages.java @@ -215,9 +215,10 @@ public abstract class MapEntryStages extends HashEntryStages boolean tierHasChanged = allocatedChunks.initEntryAndKeyCopying( entrySize, valueSizeOffset - keySizeOffset, pos, entrySizeInChunks); - // implicitly inits key search, locating hashLookupPos on the empty slot - if (tierHasChanged && !ks.searchStateAbsent()) { - throw new AssertionError(); + if (tierHasChanged) { + // implicitly inits key search, locating hashLookupPos on the empty slot + if (!ks.searchStateAbsent()) + throw new AssertionError(); } initValue(newValue);