Improve listener dispatch 44/97944/2
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 17 Oct 2021 07:34:42 +0000 (09:34 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 17 Oct 2021 08:45:35 +0000 (10:45 +0200)
commitf3efd027632cd8c19b9faae4146a49ff9505abe9
tree3c55d252835dce8c555683a8c513169eae7dfb8e
parent78b6466d10bbf077f354f9a6ccf52a8848f1e476
Improve listener dispatch

Both RPC and action listeners should always be ImmutableLists, make sure
that is captured in their definition. This is an invariant useful for
JIT, as we bind directly to implementation -- and do not throw
Collections.emptyList() into the mix.

Change-Id: I7fe71819f11b80399734759bf774c629adfe12bf
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
dom/mdsal-dom-broker/src/main/java/org/opendaylight/mdsal/dom/broker/DOMRpcRouter.java