Trim SubscriptionUtil constants, part one 53/116453/5
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 6 May 2025 02:40:14 +0000 (04:40 +0200)
committerIvan Hrasko <ivan.hrasko@pantheon.tech>
Wed, 7 May 2025 11:44:34 +0000 (11:44 +0000)
commita1c1b2e556d8f8535a00812eb9f24e95be810285
treeabc65c084b255bf5566caa280048c0469df78836
parentfa809ce241632d19b858cf5352bcc1ca535651d6
Trim SubscriptionUtil constants, part one

YangInstanceIdentifiers we have here are either unused or used by tests.
Inline what's used into individual users, make things a bit more
explicit.

One exception is SUBSCRIBERS, which we turn into a utility method in
MdsalRestconfStreamRegistry. where most of its users live. This
eliminate duplicated NodeIdentifierWithPredicates invocations.

Change-Id: I96b8a8b411e963c33d99b9a1c00256acaacfeb0a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
apps/restconf-subscription/src/main/java/org/opendaylight/restconf/subscription/SubscriptionUtil.java
apps/restconf-subscription/src/test/java/org/opendaylight/restconf/subscription/DeleteSubscriptionRpcTest.java
apps/restconf-subscription/src/test/java/org/opendaylight/restconf/subscription/EstablishSubscriptionRpcTest.java
apps/restconf-subscription/src/test/java/org/opendaylight/restconf/subscription/KillSubscriptionRpcTest.java
apps/restconf-subscription/src/test/java/org/opendaylight/restconf/subscription/ModifySubscriptionRpcTest.java
plugins/restconf-server-mdsal/src/main/java/org/opendaylight/restconf/server/mdsal/MdsalRestconfStreamRegistry.java
plugins/restconf-server-mdsal/src/main/java/org/opendaylight/restconf/server/mdsal/MdsalRestconfStreamSubscription.java