Make builder typesafe by default and deprecate type-unsafe interfaces
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)
commit07dbb767074a0d74bd61dee94bdea77ed58fa6d7
tree929f7e553a1b00e8a870e0289c5bff33e1c3f6f4
parent325af9a84aa1a15f5ef8066dc69f06d33554d83b
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