Cleanup up registration lifecycle
[openflowplugin.git] / applications / forwardingrules-manager / src / main / java / org / opendaylight / openflowplugin / applications / frm / impl / DeviceMastershipManager.java
index 08a1943bad5899646d54edc62f8f20281944628f..8356a1d7bf6449d0e21d9afefd8ba9895ec8ca88 100644 (file)
@@ -29,7 +29,6 @@ import org.opendaylight.mdsal.binding.api.DataTreeModification;
 import org.opendaylight.mdsal.binding.api.RpcProviderService;
 import org.opendaylight.mdsal.common.api.LogicalDatastoreType;
 import org.opendaylight.openflowplugin.api.openflow.device.DeviceInfo;
-import org.opendaylight.openflowplugin.api.openflow.mastership.MastershipChangeRegistration;
 import org.opendaylight.openflowplugin.api.openflow.mastership.MastershipChangeService;
 import org.opendaylight.openflowplugin.api.openflow.mastership.MastershipChangeServiceManager;
 import org.opendaylight.openflowplugin.applications.frm.FlowNodeReconciliation;
@@ -66,7 +65,7 @@ public class DeviceMastershipManager implements DataTreeChangeListener<FlowCapab
     private final RpcProviderService rpcProviderService;
 
     private Registration listenerRegistration;
-    private MastershipChangeRegistration mastershipChangeServiceRegistration;
+    private Registration mastershipChangeServiceRegistration;
 
     @SuppressFBWarnings(value = "MC_OVERRIDABLE_METHOD_CALL_IN_CONSTRUCTOR", justification = "Non-final for mocking")
     public DeviceMastershipManager(final FlowNodeReconciliation reconcliationAgent,