Skip to content

Commit ae685c0

Browse files
committed
Cosmetic fix
1 parent 4a1e008 commit ae685c0

File tree

1 file changed

+3
-2
lines changed
  • services-api/src/main/java/io/scalecube/services

1 file changed

+3
-2
lines changed

services-api/src/main/java/io/scalecube/services/Reflect.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,9 @@ public static void validateMethodOrThrow(Method method) {
285285
validateResponseType(method);
286286
validateRequestType(method);
287287

288-
if (method.getParameterCount() > 2) {
289-
throw new UnsupportedOperationException("Service method can accept maximum 2 parameters");
288+
if (method.getParameterCount() > 1) {
289+
throw new UnsupportedOperationException(
290+
"Service method can accept at maximum single parameter");
290291
}
291292
}
292293

0 commit comments

Comments
 (0)