Reduce JSR305 proliferation
[controller.git] / opendaylight / md-sal / sal-common-api / src / main / java / org / opendaylight / controller / md / sal / common / api / MappingCheckedFuture.java
index a847807b59f44617b1bd5ff0a4074ff7ba0ce195..7c0a7773f1d60f2a8c26d1ef99795396f7696270 100644 (file)
@@ -16,7 +16,6 @@ import java.util.concurrent.ExecutionException;
 import java.util.concurrent.TimeUnit;
 import java.util.concurrent.TimeoutException;
 import java.util.function.Function;
-import javax.annotation.Nonnull;
 
 /**
  * An implementation of CheckedFuture that provides similar behavior for the <code>get</code> methods
@@ -56,7 +55,7 @@ public final class MappingCheckedFuture<V, X extends Exception> extends Abstract
 
     @Override
     @SuppressWarnings("checkstyle:parameterName")
-    protected X mapException(@Nonnull final Exception e) {
+    protected X mapException(final Exception e) {
         return mapper.apply(e);
     }
 
@@ -79,7 +78,7 @@ public final class MappingCheckedFuture<V, X extends Exception> extends Abstract
     }
 
     @Override
-    public V get(final long timeout, @Nonnull final TimeUnit unit)
+    public V get(final long timeout, final TimeUnit unit)
             throws InterruptedException, ExecutionException, TimeoutException {
         try {
             return super.get(timeout, unit);