Skip to content

Commit 0214e4a

Browse files
committed
method javadoc; briandilley#172
1 parent d938571 commit 0214e4a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/main/java/com/googlecode/jsonrpc4j/JsonRpcBasicServer.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,15 @@ private Method getBestMatchingArgTypeMethod(ArrayNode paramNodes, int numParams,
676676
return bestMethod;
677677
}
678678

679+
/**
680+
* Finds the {@link Method} from the supplied {@link Set} that
681+
* matches the method name annotation and have varargs.
682+
* it as a {@link AMethodWithItsArgs} class.
683+
*
684+
* @param methods the {@link Method}s
685+
* @param paramsNode the {@link JsonNode} of request
686+
* @return the {@link AMethodWithItsArgs}
687+
*/
679688
private AMethodWithItsArgs findBestMethodForVarargs(Set<Method> methods, JsonNode paramsNode) {
680689
for (Method method : methods) {
681690
if(method.getParameterTypes().length!=1) {

0 commit comments

Comments
 (0)