Make builder typesafe by default and deprecate type-unsafe interfaces 32/2732/1
authorRobert Varga <rovarga@cisco.com>
Thu, 14 Nov 2013 10:21:32 +0000 (11:21 +0100)
committerRobert Varga <rovarga@cisco.com>
Thu, 14 Nov 2013 10:30:01 +0000 (11:30 +0100)
commit0bf0c089d8b87f7463692cec3828f674136cdad3
tree93aca296a38177f69f4cb910f82849af99b0d028
parent3ad40c046c3307f582b9ecb9ff3b42df5386fa80
Make builder typesafe by default and deprecate type-unsafe interfaces

This concludes the conversion to typesafe builders, by introducing two
new factory methods which can be used with top-level containers,
resulting in a type-initialized container, on which child() and
augmentation() methods work as expected.

Since using this instantiation guides the developer and provides useful
compile-time feedback on what constitutes a valid InstanceIdentifier,
deprecate the old, unsafe interface.

Signed-off-by: Robert Varga <rovarga@cisco.com>
yang/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/InstanceIdentifier.java