Don't use Java 8's Method.getParameterCount()
This commit is contained in:
@@ -67,7 +67,8 @@ class SynthesizedAnnotationInvocationHandler implements InvocationHandler {
|
||||
@Override
|
||||
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
|
||||
String methodName = method.getName();
|
||||
int parameterCount = method.getParameterCount();
|
||||
Class<?>[] parameterTypes = method.getParameterTypes();
|
||||
int parameterCount = parameterTypes.length;
|
||||
|
||||
if ("toString".equals(methodName) && (parameterCount == 0)) {
|
||||
return toString(proxy);
|
||||
|
||||
Reference in New Issue
Block a user