Deprecate ImmutableNodes.fromInstanceId() with deepestElement 60/99260/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 10 Jan 2022 12:25:59 +0000 (13:25 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 10 Jan 2022 16:15:33 +0000 (17:15 +0100)
commit6077d95857fcaa9598ed84cffc8eccd93d67dfe9
treef228e0ebb9bf596d6b484a35f6ddac5766c4c92b
parentd30bacdbf70df34bc9e3f2e69fe7006a868970d9
Deprecate ImmutableNodes.fromInstanceId() with deepestElement

The two methods allowing an override of the deepest element have only a
single user, which is broken by their semantics. Deprecate them for
removal, so that we flush out anyone else still relying on them.

JIRA: YANGTOOLS-1389
Change-Id: I52e8bdebc5488d095645a7bfb45a5c9cf400ecb0
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit faf7ce6d1e3acb2af2b846746e8495749301b484)
data/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/ImmutableNodes.java
data/yang-data-impl/src/test/java/org/opendaylight/yangtools/yang/data/impl/schema/InstanceIdToNodesTest.java