Browse Source

removed inappropriate assertion that prevents static method calls

pull/23217/head
Juergen Hoeller 17 years ago
parent
commit
5e68cc5a58
  1. 3
      org.springframework.core/src/main/java/org/springframework/util/ReflectionUtils.java

3
org.springframework.core/src/main/java/org/springframework/util/ReflectionUtils.java

@ -193,9 +193,6 @@ public abstract class ReflectionUtils { @@ -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…
Cancel
Save