Fixed minor bug in multimaplets again (compile server).

This commit is contained in:
Dmitry Boulytchev
2012-06-27 19:13:10 +04:00
parent 8bec59005f
commit 13780dbaf5
2 changed files with 2 additions and 2 deletions
@@ -83,7 +83,7 @@ class IntObjectPersistentMultiMaplet<V extends Streamable> extends IntObjectMult
public void replace(int key, Collection<V> value) {
try {
myCache.remove(key);
if (value == null) {
if (value == null || value.size() == 0) {
myMap.remove(key);
}
else {
@@ -55,7 +55,7 @@ class IntObjectTransientMultiMaplet<V extends Streamable> extends IntObjectMulti
@Override
public void replace(int key, Collection<V> value) {
if (value == null) {
if (value == null || value.size() == 0) {
myMap.remove(key);
}
else {