Skip to content

Commit

Permalink
Remove unnecessary SpotBugs exclusions
Browse files Browse the repository at this point in the history
  • Loading branch information
basil committed Nov 15, 2023
1 parent 2aa692a commit 211c463
Showing 1 changed file with 0 additions and 3 deletions.
Expand Up @@ -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;
Expand Down Expand Up @@ -561,7 +560,6 @@ private static Object[] buildArguments(Class<?> clazz, Map<String,?> 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) {
Expand Down Expand Up @@ -799,7 +797,6 @@ static Set<Class<?>> findSubtypes(Class<?> supertype) {
return clazzes;
}

@SuppressFBWarnings(value="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE", justification="new Jenkins.getInstance")
@SuppressWarnings("rawtypes")
private static List<? extends Descriptor> getDescriptorList() {
Jenkins j = Jenkins.getInstance();
Expand Down

0 comments on commit 211c463

Please sign in to comment.