Skip to content

Commit 5e68cc5

Browse files
committed
removed inappropriate assertion that prevents static method calls
1 parent 34d4e3c commit 5e68cc5

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,6 @@ public static Object invokeMethod(Method method, Object target) {
193193
* @return the invocation result, if any
194194
*/
195195
public static Object invokeMethod(Method method, Object target, Object... args) {
196-
if (target == null) {
197-
throw new IllegalArgumentException("target cannot be null");
198-
}
199196
try {
200197
return method.invoke(target, args);
201198
}

0 commit comments

Comments
 (0)