From 211c4632a0fba2e60bb3c618126d5838c9cbf0bf Mon Sep 17 00:00:00 2001 From: Basil Crow Date: Wed, 15 Nov 2023 12:46:42 -0800 Subject: [PATCH] Remove unnecessary SpotBugs exclusions --- .../jenkinsci/plugins/workflow/structs/DescribableHelper.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/java/org/jenkinsci/plugins/workflow/structs/DescribableHelper.java b/src/main/java/org/jenkinsci/plugins/workflow/structs/DescribableHelper.java index 209dbbe..c45b8b7 100644 --- a/src/main/java/org/jenkinsci/plugins/workflow/structs/DescribableHelper.java +++ b/src/main/java/org/jenkinsci/plugins/workflow/structs/DescribableHelper.java @@ -26,7 +26,6 @@ import hudson.Extension; import com.google.common.primitives.Primitives; -import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; import hudson.Util; import hudson.model.Describable; import hudson.model.Descriptor; @@ -561,7 +560,6 @@ private static Object[] buildArguments(Class clazz, Map arguments, return hasArg ? args : null; } - @SuppressFBWarnings(value="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE", justification="new Jenkins.getInstance") @SuppressWarnings("unchecked") private static Object coerce(String context, Type type, @NonNull Object o) throws Exception { if (type instanceof Class) { @@ -799,7 +797,6 @@ static Set> findSubtypes(Class supertype) { return clazzes; } - @SuppressFBWarnings(value="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE", justification="new Jenkins.getInstance") @SuppressWarnings("rawtypes") private static List getDescriptorList() { Jenkins j = Jenkins.getInstance();