diff --git a/src/main/java/org/jenkinsci/plugins/github/util/misc/NullSafeFunction.java b/src/main/java/org/jenkinsci/plugins/github/util/misc/NullSafeFunction.java index 3a0918247..e51ed8287 100644 --- a/src/main/java/org/jenkinsci/plugins/github/util/misc/NullSafeFunction.java +++ b/src/main/java/org/jenkinsci/plugins/github/util/misc/NullSafeFunction.java @@ -14,6 +14,10 @@ public abstract class NullSafeFunction implements Function { @Override + @edu.umd.cs.findbugs.annotations.SuppressFBWarnings( + value = "NP_PARAMETER_MUST_BE_NONNULL_BUT_MARKED_AS_NULLABLE", + justification = "https://github.com/spotbugs/spotbugs/issues/616" + ) public T apply(F input) { return applyNullSafe(checkNotNull(input, "This function does not allow using null as argument")); } diff --git a/src/main/java/org/jenkinsci/plugins/github/util/misc/NullSafePredicate.java b/src/main/java/org/jenkinsci/plugins/github/util/misc/NullSafePredicate.java index 847753d59..cb085a71d 100644 --- a/src/main/java/org/jenkinsci/plugins/github/util/misc/NullSafePredicate.java +++ b/src/main/java/org/jenkinsci/plugins/github/util/misc/NullSafePredicate.java @@ -15,6 +15,10 @@ public abstract class NullSafePredicate implements Predicate { @Override + @edu.umd.cs.findbugs.annotations.SuppressFBWarnings( + value = "NP_PARAMETER_MUST_BE_NONNULL_BUT_MARKED_AS_NULLABLE", + justification = "https://github.com/spotbugs/spotbugs/issues/616" + ) public boolean apply(T input) { return applyNullSafe(checkNotNull(input, "Argument for this predicate can't be null")); }