removed inappropriate assertion that prevents static method calls
This commit is contained in:
parent
34d4e3cbe0
commit
5e68cc5a58
|
|
@ -193,9 +193,6 @@ public abstract class ReflectionUtils {
|
||||||
* @return the invocation result, if any
|
* @return the invocation result, if any
|
||||||
*/
|
*/
|
||||||
public static Object invokeMethod(Method method, Object target, Object... args) {
|
public static Object invokeMethod(Method method, Object target, Object... args) {
|
||||||
if (target == null) {
|
|
||||||
throw new IllegalArgumentException("target cannot be null");
|
|
||||||
}
|
|
||||||
try {
|
try {
|
||||||
return method.invoke(target, args);
|
return method.invoke(target, args);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue