summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2018-08-06 08:16:48 +0200
committerMarek Gradzki <mgradzki@cisco.com>2018-08-06 07:35:29 +0000
commit1091f944d1af02e27a770d78e87e6c55c902decd (patch)
treed6b93b1b846c065d3676698761bc724e2b049625
parentf7c5300c54fcb51f9bc763b8d5f43a882c4ed5b1 (diff)
HoneycombDOMRpcService: remove unnecessary cast to Function
Fixes issue reported by Sonar. Change-Id: I083eb089f1ccd691a2015eaa401fe5acf7c59d49 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
-rw-r--r--infra/rpc/impl/src/main/java/io/fd/honeycomb/rpc/HoneycombDOMRpcService.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/infra/rpc/impl/src/main/java/io/fd/honeycomb/rpc/HoneycombDOMRpcService.java b/infra/rpc/impl/src/main/java/io/fd/honeycomb/rpc/HoneycombDOMRpcService.java
index 01adbd6da..d951ff962 100644
--- a/infra/rpc/impl/src/main/java/io/fd/honeycomb/rpc/HoneycombDOMRpcService.java
+++ b/infra/rpc/impl/src/main/java/io/fd/honeycomb/rpc/HoneycombDOMRpcService.java
@@ -40,9 +40,7 @@ import org.opendaylight.yangtools.yang.model.api.SchemaPath;
public final class HoneycombDOMRpcService implements DOMRpcService {
private static final Function<? super Exception, DOMRpcException> ANY_EX_TO_RPC_EXCEPTION_MAPPER =
- (Function<Exception, DOMRpcException>) e -> (e instanceof DOMRpcException)
- ? (DOMRpcException) e
- : new RpcException("RPC failed", e);
+ e -> (e instanceof DOMRpcException) ? (DOMRpcException) e : new RpcException("RPC failed", e);
private final BindingNormalizedNodeSerializer serializer;
private final RpcRegistry rpcRegistry;