Skip to content
Permalink
Browse files

[JENKINS-39470] Avoid hiding extra findbug errors.

  • Loading branch information...
varyvol committed Nov 7, 2016
1 parent ec5d435 commit ebc2327d6158b3b2275caa16ec421f0859811851
Showing with 2 additions and 1 deletion.
  1. +0 −1 pom.xml
  2. +2 −0 src/main/java/org/jenkinsci/plugins/secure_requester_whitelist/Whitelist.java
@@ -42,6 +42,5 @@
<properties>
<jenkins.version>1.580.1</jenkins.version>
<java.level>6</java.level>
<findbugs.failOnError>false</findbugs.failOnError>
</properties>
</project>
@@ -24,6 +24,7 @@

package org.jenkinsci.plugins.secure_requester_whitelist;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import hudson.Extension;
import jenkins.model.GlobalConfiguration;
import jenkins.model.GlobalConfigurationCategory;
@@ -33,6 +34,7 @@

@Extension public class Whitelist extends GlobalConfiguration {

@SuppressFBWarnings("NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE")
public static Whitelist get() {
return Jenkins.getInstance().getDescriptorByType(Whitelist.class);
}

0 comments on commit ebc2327

Please sign in to comment.
You can’t perform that action at this time.