mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-29 10:50:33 +00:00
Don't use Java 8's Method.getParameterCount()
This commit is contained in:
+2
-1
@@ -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