Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Use a simple list for string code table
[controller.git]
/
opendaylight
/
md-sal
/
sal-common-api
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
md
/
sal
/
common
/
api
/
MappingCheckedFuture.java
diff --git
a/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/MappingCheckedFuture.java
b/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/MappingCheckedFuture.java
index a847807b59f44617b1bd5ff0a4074ff7ba0ce195..7c0a7773f1d60f2a8c26d1ef99795396f7696270 100644
(file)
--- a/
opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/MappingCheckedFuture.java
+++ b/
opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/MappingCheckedFuture.java
@@
-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 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
/**
* 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")
@Override
@SuppressWarnings("checkstyle:parameterName")
- protected X mapException(
@Nonnull
final Exception e) {
+ protected X mapException(final Exception e) {
return mapper.apply(e);
}
return mapper.apply(e);
}
@@
-79,7
+78,7
@@
public final class MappingCheckedFuture<V, X extends Exception> extends Abstract
}
@Override
}
@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);
throws InterruptedException, ExecutionException, TimeoutException {
try {
return super.get(timeout, unit);