Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary SpotBugs exclusions #134

Merged
merged 1 commit into from
Nov 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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