mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
allow empty values
This commit is contained in:
@@ -69,7 +69,7 @@ class PersistentMultiMaplet<K, V> implements MultiMaplet<K, V> {
|
||||
@Override
|
||||
public void replace(K key, Collection<V> value) {
|
||||
try {
|
||||
if (value == null || value.isEmpty()) {
|
||||
if (value == null) {
|
||||
myMap.remove(key);
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -74,7 +74,7 @@ class TransientMultiMaplet<K, V> implements MultiMaplet<K, V> {
|
||||
|
||||
@Override
|
||||
public void replace(K key, Collection<V> value) {
|
||||
if (value == null || value.isEmpty()) {
|
||||
if (value == null) {
|
||||
myMap.remove(key);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user