Bump odlparent to 5.0.0
[openflowplugin.git] / openflowplugin-impl / src / main / java / org / opendaylight / openflowplugin / impl / lifecycle / GuardedContextImpl.java
index fc7cf9ef2f66efe8d8399b6581b7982dc08bee6e..9c1ff0fc325bb1e56e73ae98482702a3e5c2cce2 100644 (file)
@@ -23,7 +23,6 @@ import com.google.common.util.concurrent.MoreExecutors;
 import com.google.common.util.concurrent.Service;
 import java.util.function.Function;
 import javax.annotation.Nonnull;
-import javax.annotation.Nullable;
 import org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier;
 import org.opendaylight.openflowplugin.api.openflow.OFPContext;
 import org.opendaylight.openflowplugin.api.openflow.device.DeviceInfo;
@@ -106,12 +105,12 @@ public class GuardedContextImpl implements GuardedContext {
 
                 Futures.addCallback(resultFuture, new FutureCallback<Object>() {
                     @Override
-                    public void onSuccess(@Nullable final Object result) {
+                    public void onSuccess(final Object result) {
                         state = TERMINATED;
                     }
 
                     @Override
-                    public void onFailure(@Nonnull final Throwable throwable) {
+                    public void onFailure(final Throwable throwable) {
                         state = TERMINATED;
                     }
                 }, MoreExecutors.directExecutor());