From 7c2abcfa944cbe1285c9932dc797ee6c1db8eee9 Mon Sep 17 00:00:00 2001 From: Tim Van Holder Date: Wed, 8 Jul 2020 00:09:21 +0200 Subject: [PATCH] [JENKINS-62723] Extend JavaDoc with `@throws` --- core/src/main/java/hudson/Util.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/main/java/hudson/Util.java b/core/src/main/java/hudson/Util.java index 4cc87eb032..caef4d1020 100644 --- a/core/src/main/java/hudson/Util.java +++ b/core/src/main/java/hudson/Util.java @@ -1440,6 +1440,8 @@ public class Util { * @param methodName The name of the method. * @param types The types of the arguments for the method. * @return {@code true} when {@code derived} provides the specified method other than as inherited from {@code base}. + * @throws IllegalArgumentException When {@code derived} does not derive from {@code base}, or when {@code base} + * does not contain the specified method. */ public static boolean isOverridden(@NonNull Class base, @NonNull Class derived, @NonNull String methodName, @NonNull Class... types) { // If derived is not a subclass or implementor of base, it can't override any method