From 37d4c4095b74cb3d0efea32459b8bf66aedfbb4c Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Fri, 27 Nov 2009 01:03:48 +0000 Subject: [PATCH] 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 --- .../main/java/org/springframework/util/ReflectionUtils.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/org.springframework.core/src/main/java/org/springframework/util/ReflectionUtils.java b/org.springframework.core/src/main/java/org/springframework/util/ReflectionUtils.java index 7e65495895e..170c948f940 100644 --- a/org.springframework.core/src/main/java/org/springframework/util/ReflectionUtils.java +++ b/org.springframework.core/src/main/java/org/springframework/util/ReflectionUtils.java @@ -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); }