Fix EmptyImmutableUnkeyedListNode.getChild() 45/15845/1
authorRobert Varga <rovarga@cisco.com>
Sat, 28 Feb 2015 20:47:24 +0000 (21:47 +0100)
committerRobert Varga <rovarga@cisco.com>
Sat, 28 Feb 2015 20:48:56 +0000 (21:48 +0100)
commitc55d2284202f333bcfdbcdd27afa3a30b6b6315a
treeb3ac9cb355d76ab189052d0291bbb50a789411ea
parentce5676cea927c9094e9059e21a7e413b5b645a1e
Fix EmptyImmutableUnkeyedListNode.getChild()

The interface contract states that we should throw
IndexOutOfBoundsException rather than returning null.

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