From 1e38f5c23429f2b5e883df5aa42a1f54e8bcccb0 Mon Sep 17 00:00:00 2001 From: Tigran Mkrtchyan Date: Tue, 17 Jul 2018 15:32:59 +0200 Subject: [PATCH] rpc: use telescopic methods Motivation: helper methods needs different number of arguments. Telescopic methods make code more readable and simpler to maintain. Modification: use telescopic methods for various RpcCall#call methods. Result: more readable code. Acked-by: Albert Rossi Target: master --- .../src/main/java/org/dcache/oncrpc4j/rpc/RpcCall.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/oncrpc4j-core/src/main/java/org/dcache/oncrpc4j/rpc/RpcCall.java b/oncrpc4j-core/src/main/java/org/dcache/oncrpc4j/rpc/RpcCall.java index dd6f6d44..50a3df39 100644 --- a/oncrpc4j-core/src/main/java/org/dcache/oncrpc4j/rpc/RpcCall.java +++ b/oncrpc4j-core/src/main/java/org/dcache/oncrpc4j/rpc/RpcCall.java @@ -403,7 +403,7 @@ public void call(int procedure, XdrAble args, CompletionHandler callback, long timeoutValue, TimeUnit timeoutUnits) throws IOException { - callInternal(procedure, args, callback, timeoutValue, timeoutUnits, null); + call(procedure, args, callback, timeoutValue, timeoutUnits, null); } /** @@ -411,7 +411,7 @@ public void call(int procedure, XdrAble args, CompletionHandler callback, RpcAuth auth) throws IOException { - callInternal(procedure, args, callback, 0, null, auth); + call(procedure, args, callback, 0, null, auth); } /** @@ -419,7 +419,7 @@ public void call(int procedure, XdrAble args, CompletionHandler callback) throws IOException { - callInternal(procedure, args, callback, 0, null, null); + call(procedure, args, callback, 0, null, null); } /**