We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a1e008 commit ae685c0Copy full SHA for ae685c0
services-api/src/main/java/io/scalecube/services/Reflect.java
@@ -285,8 +285,9 @@ public static void validateMethodOrThrow(Method method) {
285
validateResponseType(method);
286
validateRequestType(method);
287
288
- if (method.getParameterCount() > 2) {
289
- throw new UnsupportedOperationException("Service method can accept maximum 2 parameters");
+ if (method.getParameterCount() > 1) {
+ throw new UnsupportedOperationException(
290
+ "Service method can accept at maximum single parameter");
291
}
292
293
0 commit comments