Skip to content

Commit ceb2c02

Browse files
committed
Ensure that only getters are called for strongly typed bean adapters.
1 parent fcd4837 commit ceb2c02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httprpc-client/src/main/java/org/httprpc/beans/BeanAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public Object invoke(Object proxy, Method method, Object[] arguments) throws Thr
197197
} else {
198198
String key = getKey(method);
199199

200-
if (key == null) {
200+
if (key == null || method.getParameterCount() > 0) {
201201
throw new UnsupportedOperationException();
202202
}
203203

0 commit comments

Comments
 (0)