Code Review
/
openflowplugin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Do not use deprecated Futures methods
[openflowplugin.git]
/
openflowplugin-impl
/
src
/
main
/
java
/
org
/
opendaylight
/
openflowplugin
/
impl
/
services
/
AbstractSilentErrorService.java
diff --git
a/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/AbstractSilentErrorService.java
b/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/AbstractSilentErrorService.java
index 727ccff8bb95e47682e7c4c8f4a7754c7d869cb4..a1da76e333fd55abb5dade9e70ad7fd23c1ebf12 100644
(file)
--- a/
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/AbstractSilentErrorService.java
+++ b/
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/AbstractSilentErrorService.java
@@
-10,6
+10,7
@@
package org.opendaylight.openflowplugin.impl.services;
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.MoreExecutors;
import java.util.function.Function;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.util.function.Function;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
@@
-35,6
+36,6
@@
public abstract class AbstractSilentErrorService<I, O extends DataObject>
return Futures.catching(
super.handleServiceCall(input, isComplete),
Throwable.class,
return Futures.catching(
super.handleServiceCall(input, isComplete),
Throwable.class,
- t -> RpcResultBuilder.<O>failed().build());
+ t -> RpcResultBuilder.<O>failed().build()
, MoreExecutors.directExecutor()
);
}
}
}
}