Use an ImmutableMap for empty case 19/22419/1
authorRobert Varga <rovarga@cisco.com>
Thu, 11 Jun 2015 22:25:34 +0000 (00:25 +0200)
committerRobert Varga <rovarga@cisco.com>
Thu, 11 Jun 2015 22:25:34 +0000 (00:25 +0200)
commit03add667832ab33d50eabd046d5c9a93c75a62ab
tree27ee6f12172b54937b45d1982174d85c75ee4138
parent05442d7e5fb59112453c5096851f2cd0a2b26a7f
Use an ImmutableMap for empty case

Instead of using Collections.emptyMap(), use ImmutableMap.of(). This
will result in an immutable map, taking the immutable shortcut in the
previous check.

Change-Id: I83a58b0dcd5f075d0ac7a7b5073b801ce8a47d08
Signed-off-by: Robert Varga <rovarga@cisco.com>
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/nodes/UnmodifiableChildrenMap.java