Skip to content

Commit

Permalink
Merge pull request #44 from DevFactory/release/general-code-quality-f…
Browse files Browse the repository at this point in the history
…ix-4

General code quality fix-2
  • Loading branch information
rsandell committed Feb 26, 2016
2 parents 157344e + fcc52b8 commit 309a8cb
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
import java.util.Calendar;
import java.util.Date;
import java.util.Map;
import java.util.logging.Logger;

/**
* Page for managing the failure causes.
Expand All @@ -64,8 +63,6 @@
@Extension
public class CauseManagement extends BfaGraphAction {

private static final Logger logger = Logger.getLogger(CauseManagement.class.getName());

/**
* Where in the Jenkins name space this action will be.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,7 @@ public int compare(FailureCauseTimeInterval o1, FailureCauseTimeInterval o2) {

plot.setRangeAxis(yAxis);

JFreeChart chart = new JFreeChart(graphTitle, JFreeChart.DEFAULT_TITLE_FONT, plot, true);

return chart;
return new JFreeChart(graphTitle, JFreeChart.DEFAULT_TITLE_FONT, plot, true);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ private FailureCauseBuildAction findFailureCauseBuildAction(Job job) {
if (lastBuild == null) {
return null;
}
FailureCauseBuildAction action = lastBuild.getAction(FailureCauseBuildAction.class);
return action;
return lastBuild.getAction(FailureCauseBuildAction.class);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import java.util.Set;
import java.util.concurrent.CancellationException;
import java.util.concurrent.ExecutionException;
import java.util.logging.Logger;


/**
Expand All @@ -43,8 +42,6 @@
@Extension
public class BuildFlowDBF extends DownstreamBuildFinder {

private static final Logger logger = Logger.
getLogger(BuildFlowDBF.class.getName());
@Override
public List<AbstractBuild<?, ?>> getDownstreamBuilds(
final AbstractBuild build) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ public void run() {
public void endMatrixBuildScan() throws IOException {
List<MatrixRun> runs = ((MatrixBuild)build).getRuns();
List<MatrixRun> runsWithCorrectNumber = new LinkedList<MatrixRun>();
int i = 0;
for (MatrixRun run : runs) {
if (run.getNumber() == build.getNumber()) {
runsWithCorrectNumber.add(run);
Expand Down

0 comments on commit 309a8cb

Please sign in to comment.