diff options
author | Marek Gradzki <mgradzki@cisco.com> | 2018-08-06 08:16:48 +0200 |
---|---|---|
committer | Marek Gradzki <mgradzki@cisco.com> | 2018-08-06 08:17:17 +0200 |
commit | 202c8a37af7e62a64239c6ba440447c35b8964e3 (patch) | |
tree | a06917b90f211d049d9e8b0527bf628e557de875 /infra/rpc/impl/src/main/java/io | |
parent | 7a6f5795313d22ebe5c5e0cd881dc5a94399f365 (diff) |
HoneycombDOMRpcService: remove unnecessary cast to Function
Fixes issue reported by Sonar.
Change-Id: I083eb089f1ccd691a2015eaa401fe5acf7c59d49
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'infra/rpc/impl/src/main/java/io')
-rw-r--r-- | infra/rpc/impl/src/main/java/io/fd/honeycomb/rpc/HoneycombDOMRpcService.java | 4 |
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; |