removed inappropriate assertion that prevents static method calls
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2517 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
parent
971afd6820
commit
37d4c4095b
|
|
@ -193,9 +193,6 @@ public abstract class ReflectionUtils {
|
|||
* @return the invocation result, if any
|
||||
*/
|
||||
public static Object invokeMethod(Method method, Object target, Object... args) {
|
||||
if (target == null) {
|
||||
throw new IllegalArgumentException("target cannot be null");
|
||||
}
|
||||
try {
|
||||
return method.invoke(target, args);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue