Skip to content

Commit

Permalink
Merge pull request #134 from basil/spotbugs
Browse files Browse the repository at this point in the history
Remove unnecessary SpotBugs exclusions
  • Loading branch information
jglick committed Nov 15, 2023
2 parents def4502 + 211c463 commit 295bd9f
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
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 295bd9f

Please sign in to comment.