We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f741472 commit 3e984b6Copy full SHA for 3e984b6
1 file changed
flapi-runtime/src/main/java/unquietcode/tools/flapi/runtime/SpringMethodUtils.java
@@ -38,8 +38,13 @@ public class SpringMethodUtils {
38
* @return the Method object, or {@code null} if none found
39
*/
40
public static Method findMethod(Class<?> clazz, String name, Class<?>... paramTypes) {
41
- Objects.requireNonNull(clazz, "Class must not be null");
42
- Objects.requireNonNull(name, "Method name must not be null");
+ if (clazz == null) {
+ throw new NullPointerException("Class must not be null");
43
+ }
44
+
45
+ if (name == null) {
46
+ throw new NullPointerException("Method name must not be null");
47
48
49
Class<?> searchType = clazz;
50
while (searchType != null) {
0 commit comments