|
|
|
|
@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
|
|
|
|
|
/* |
|
|
|
|
* Copyright 2002-2012 the original author or authors. |
|
|
|
|
* Copyright 2002-2013 the original author or authors. |
|
|
|
|
* |
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
|
@ -98,8 +98,8 @@ public abstract class ReflectionUtils {
@@ -98,8 +98,8 @@ public abstract class ReflectionUtils {
|
|
|
|
|
} |
|
|
|
|
catch (IllegalAccessException ex) { |
|
|
|
|
handleReflectionException(ex); |
|
|
|
|
throw new IllegalStateException("Unexpected reflection exception - " + ex.getClass().getName() + ": " |
|
|
|
|
+ ex.getMessage()); |
|
|
|
|
throw new IllegalStateException( |
|
|
|
|
"Unexpected reflection exception - " + ex.getClass().getName() + ": " + ex.getMessage()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -153,8 +153,8 @@ public abstract class ReflectionUtils {
@@ -153,8 +153,8 @@ public abstract class ReflectionUtils {
|
|
|
|
|
while (searchType != null) { |
|
|
|
|
Method[] methods = (searchType.isInterface() ? searchType.getMethods() : searchType.getDeclaredMethods()); |
|
|
|
|
for (Method method : methods) { |
|
|
|
|
if (name.equals(method.getName()) |
|
|
|
|
&& (paramTypes == null || Arrays.equals(paramTypes, method.getParameterTypes()))) { |
|
|
|
|
if (name.equals(method.getName()) && |
|
|
|
|
(paramTypes == null || Arrays.equals(paramTypes, method.getParameterTypes()))) { |
|
|
|
|
return method; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|