OPNFLWPLUG-1071 : Removal of javax.annotation.Nonnnull and replacement of javax.annot...
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / mastership / ReconciliationFrameworkEvent.java
index 197e07c695170225322dfe587b233d6fbb39cfa9..44aa8187eea2c562a73359005bfff60457c2988c 100644 (file)
@@ -8,7 +8,7 @@
 package org.opendaylight.openflowplugin.api.openflow.mastership;
 
 import com.google.common.util.concurrent.ListenableFuture;
-import javax.annotation.Nonnull;
+import org.eclipse.jdt.annotation.NonNull;
 import org.opendaylight.openflowplugin.api.openflow.device.DeviceInfo;
 import org.opendaylight.openflowplugin.api.openflow.lifecycle.OwnershipChangeListener;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflowplugin.rf.state.rev170713.ResultState;
@@ -23,9 +23,8 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow
  *     <li><i>{@link #onDevicePrepared(DeviceInfo)}</i>
  *     is called when device is disconnected or controller loses control of the switch</li>
  * </ul>
- * <p>
- * <b>This event <i>onDevicePrepared</i> should be used only for reconciliation framework and application can't do anything with
- * node before the device is not stored in to data store.</b>
+ * <b>This event <i>onDevicePrepared</i> should be used only for reconciliation framework
+ * and application can't do anything with node before the device is not stored in to data store.</b>
  * @since 0.5.0 Nitrogen
  */
 
@@ -37,7 +36,7 @@ public interface ReconciliationFrameworkEvent extends AutoCloseable {
      * @param deviceInfo connected switch identification
      * @return result state if the device can continue with connecting or should be disconnected
      */
-    ListenableFuture<ResultState> onDevicePrepared(@Nonnull DeviceInfo deviceInfo);
+    ListenableFuture<ResultState> onDevicePrepared(@NonNull DeviceInfo deviceInfo);
 
     /**
      * This event occurs after device is disconnected or being slaved.
@@ -47,7 +46,7 @@ public interface ReconciliationFrameworkEvent extends AutoCloseable {
      * @return future
      * @see MastershipChangeService
      */
-    ListenableFuture<Void> onDeviceDisconnected(@Nonnull DeviceInfo deviceInfo);
+    ListenableFuture<Void> onDeviceDisconnected(@NonNull DeviceInfo deviceInfo);
 
 
 }