Once we have called removeListener() we will not interact with
the DOMRpcRouter, hence there is no need to retain a reference
to it.
Change-Id: I788646e91370ed15e246a95ac5585fbc4c897ac9
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
private static final class Registration<T extends DOMRpcAvailabilityListener>
extends AbstractListenerRegistration<T> {
private static final class Registration<T extends DOMRpcAvailabilityListener>
extends AbstractListenerRegistration<T> {
- private final DOMRpcRouter router;
-
private Map<SchemaPath, Set<YangInstanceIdentifier>> prevRpcs;
private Map<SchemaPath, Set<YangInstanceIdentifier>> prevRpcs;
+ private DOMRpcRouter router;
Registration(final DOMRpcRouter router, final T listener,
final Map<SchemaPath, Set<YangInstanceIdentifier>> rpcs) {
Registration(final DOMRpcRouter router, final T listener,
final Map<SchemaPath, Set<YangInstanceIdentifier>> rpcs) {
@Override
protected void removeRegistration() {
router.removeListener(this);
@Override
protected void removeRegistration() {
router.removeListener(this);