Always use ImmutableList.of() when returning an empty list
Change-Id: I54abee905abacea32f5c49ead2e98a2caf116fbe
diff --git a/core/store/dist/src/main/java/org/onosproject/store/newresource/impl/ConsistentResourceStore.java b/core/store/dist/src/main/java/org/onosproject/store/newresource/impl/ConsistentResourceStore.java
index 6b1443d..707ce4b 100644
--- a/core/store/dist/src/main/java/org/onosproject/store/newresource/impl/ConsistentResourceStore.java
+++ b/core/store/dist/src/main/java/org/onosproject/store/newresource/impl/ConsistentResourceStore.java
@@ -46,7 +46,6 @@
import java.util.Arrays;
import java.util.Collection;
-import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.List;
@@ -367,7 +366,7 @@
Versioned<Set<Resource>> children = childMap.get((Resource.Discrete) parent);
if (children == null) {
- return Collections.emptyList();
+ return ImmutableList.of();
}
return children.value();
@@ -381,7 +380,7 @@
Versioned<Set<Resource>> children = childMap.get((Resource.Discrete) parent);
if (children == null) {
- return Collections.emptyList();
+ return ImmutableList.of();
}
Stream<Resource.Discrete> discrete = children.value().stream()