Eliminate synthetic access to invoke0() 23/73823/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 9 Jul 2018 02:10:21 +0000 (04:10 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 9 Jul 2018 02:10:21 +0000 (04:10 +0200)
This method is invoked from InvocationStrategy, hence it being
private generates a synthetic accessor method. Change method
visibility to package-private, eliminating this inefficiency.

Change-Id: I74ee9f8c729ba8d0892316fc405a0d99830b5f04
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/impl/RpcServiceAdapter.java

index 35349968f268d92180a5ffee889f99af4feb0cdb..5e24c90b192b928d2e192a147de57939d61b9267 100644 (file)
@@ -64,7 +64,7 @@ class RpcServiceAdapter implements InvocationHandler {
         proxy = (RpcService) Proxy.newProxyInstance(type.getClassLoader(), new Class[] {type}, this);
     }
 
-    private ListenableFuture<RpcResult<?>> invoke0(final SchemaPath schemaPath, final NormalizedNode<?, ?> input) {
+    ListenableFuture<RpcResult<?>> invoke0(final SchemaPath schemaPath, final NormalizedNode<?, ?> input) {
         final CheckedFuture<DOMRpcResult, DOMRpcException> result = delegate.invokeRpc(schemaPath, input);
         if (result instanceof LazyDOMRpcResultFuture) {
             return ((LazyDOMRpcResultFuture) result).getBindingFuture();