Fixing squid:S1066- Collapsible "if" statements should be merged.

This commit is contained in:
Faisal Hameed
2016-02-12 10:12:13 +05:00
parent 28045975a1
commit efd3e1f05a
3 changed files with 8 additions and 12 deletions
@@ -215,10 +215,9 @@ public abstract class MapEntryStages<K, V> extends HashEntryStages<K>
boolean tierHasChanged = allocatedChunks.initEntryAndKeyCopying(
entrySize, valueSizeOffset - keySizeOffset, pos, entrySizeInChunks);
if (tierHasChanged) {
// implicitly inits key search, locating hashLookupPos on the empty slot
if (!ks.searchStateAbsent())
throw new AssertionError();
// implicitly inits key search, locating hashLookupPos on the empty slot
if (tierHasChanged && !ks.searchStateAbsent()) {
throw new AssertionError();
}
initValue(newValue);