Added annotation.
@@ -8,6 +8,7 @@ import java.util.Collections;
import org.apache.commons.lang3.StringUtils;
import org.kohsuke.stapler.StaplerProxy;
+import edu.umd.cs.findbugs.annotations.CheckForNull;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import io.jenkins.plugins.analysis.core.model.AnalysisResult;
import io.jenkins.plugins.analysis.core.model.LabelProviderFactory;
@@ -111,6 +112,7 @@ public class ResultAction implements HealthReportingAction, LastBuildAction, Run
}
@Override
+ @CheckForNull
public HealthReport getBuildHealth() {
return new HealthReportBuilder(healthDescriptor).computeHealth(getResult().getSizePerSeverity());
}
