Skip to content

Commit

Permalink
silence findbugs
Browse files Browse the repository at this point in the history
  • Loading branch information
15knots committed Mar 11, 2018
1 parent e40e8c7 commit c631576
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/hudson/plugins/cmake/CmakeTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import org.kohsuke.stapler.DataBoundConstructor;
import org.kohsuke.stapler.StaplerRequest;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import hudson.EnvVars;
import hudson.Extension;
import hudson.Util;
Expand Down Expand Up @@ -67,6 +68,7 @@ public CmakeTool(String name, String home,
List<? extends ToolProperty<?>> properties) {
super(Util.fixEmptyAndTrim(name), Util.fixEmptyAndTrim(home),
properties);
bindir= null;
}

/**
Expand Down Expand Up @@ -144,6 +146,7 @@ public CmakeTool forEnvironment(EnvVars environment) {
*
*/
@Initializer(after = EXTENSIONS_AUGMENTED)
@SuppressFBWarnings(value = "RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE", justification = "Older Jenkins may return null here")
public static void onLoaded() {

Jenkins jenkinsInstance = Jenkins.getInstance();
Expand Down

0 comments on commit c631576

Please sign in to comment.