BUG-865: remove JSONCodec.needQuotes()
[yangtools.git] / yang / yang-data-impl / src / main / java / org / opendaylight / yangtools / yang / data / impl / schema / nodes / UnmodifiableChildrenMap.java
index 16995208489397e0e353b2909943784501ae4699..2551efb569fb909336040ef9cd307cc01f28130d 100644 (file)
@@ -22,7 +22,7 @@ import org.opendaylight.yangtools.yang.data.api.schema.DataContainerChild;
  * Internal equivalent of {@link Collections}' unmodifiable Map. It does not retain
  * keySet/entrySet references, thus lowering the memory overhead.
  */
-final class UnmodifiableChildrenMap extends CloneableChildrenMap implements Serializable {
+final class UnmodifiableChildrenMap implements CloneableMap<PathArgument, DataContainerChild<? extends PathArgument, ?>>, Serializable {
     private static final long serialVersionUID = 1L;
     /*
      * Do not wrap maps which are smaller than this and instead copy them into
@@ -51,7 +51,7 @@ final class UnmodifiableChildrenMap extends CloneableChildrenMap implements Seri
             return map;
         }
         if (map.isEmpty()) {
-            return Collections.emptyMap();
+            return ImmutableMap.of();
         }
         if (map.size() < WRAP_THRESHOLD) {
             return ImmutableMap.copyOf(map);