package org.opendaylight.mdsal.dom.store.inmemory;
import com.google.common.base.Preconditions;
-import java.util.Collections;
+import com.google.common.collect.ImmutableMap;
import java.util.Map;
import org.opendaylight.mdsal.dom.api.DOMDataTreeWriteCursor;
import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument;
@Override
Map<PathArgument, WriteableModificationNode> getChildrenWithSubshards() {
- return Collections.emptyMap();
+ return ImmutableMap.of();
}
}
import static org.opendaylight.mdsal.dom.store.inmemory.TestUtils.DOM_DATA_TREE_WRITE_CURSOR;
import static org.opendaylight.mdsal.dom.store.inmemory.TestUtils.resetMocks;
-import java.util.Collections;
+import com.google.common.collect.ImmutableMap;
import org.junit.After;
import org.junit.Test;
WriteableSubshardBoundaryNode.from(FOREIGN_SHARD_MODIFICATION_CONTEXT);
assertNotNull(writeableSubshardBoundaryNode.getChildrenWithSubshards());
- assertSame(Collections.emptyMap(),writeableSubshardBoundaryNode.getChildrenWithSubshards());
+ assertSame(ImmutableMap.of(), writeableSubshardBoundaryNode.getChildrenWithSubshards());
assertEquals(DOM_DATA_TREE_IDENTIFIER.getRootIdentifier().getLastPathArgument(),
writeableSubshardBoundaryNode.getIdentifier());
assertNull(writeableSubshardBoundaryNode.getChild(null));