Browse Source

Fix JASSIST-267

Clean code according to comments.
tags/rel_3_24_0_rc
NingZhang-Ericsson 5 years ago
parent
commit
b814145398
1 changed files with 2 additions and 5 deletions
  1. 2
    5
      src/main/javassist/util/proxy/ProxyFactory.java

+ 2
- 5
src/main/javassist/util/proxy/ProxyFactory.java View File

@@ -1216,12 +1216,9 @@ public class ProxyFactory {
private static boolean areParametersSame(Method method, Method targetMethod) {
Class<?>[] methodTypes = method.getParameterTypes();
Class<?>[] targetMethodTypes = targetMethod.getParameterTypes();
int i = -1;
if (methodTypes.length == targetMethodTypes.length) {
for (Class<?> clz : methodTypes) {
i++;

if (clz.equals(targetMethodTypes[i].getClass())) {
for (int i = 0; i< methodTypes.length; i++) {
if (methodTypes[i].getName().equals(targetMethodTypes[i].getName())) {
continue;
} else {
return false;

Loading…
Cancel
Save