Use an ImmutableMap for empty case 97/22597/1
authorRobert Varga <rovarga@cisco.com>
Thu, 11 Jun 2015 22:25:34 +0000 (00:25 +0200)
committerTony Tkacik <ttkacik@cisco.com>
Mon, 15 Jun 2015 14:25:14 +0000 (16:25 +0200)
commit01755f5af314de8f15b9e53e08e430f9bc0251de
tree77a6c1447c863a9810b8ef6f58fd045ad75ea709
parent01f6888b1e8e9cbc647f1395b5e8138b2f7739e6
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>
(cherry picked from commit 03add667832ab33d50eabd046d5c9a93c75a62ab)
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/nodes/UnmodifiableChildrenMap.java