aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@gmail.com>2013-08-28 14:49:38 +0200
committerJulien Lancelot <julien.lancelot@gmail.com>2013-08-28 14:49:38 +0200
commit9324c65fc550b13cb5593f2f958e34d246f7c42b (patch)
tree31876ed424cba6d7f3065532e8e321c67369afb2 /plugins
parente0b09631fe4041cfceac233532c9ff84efefb2b0 (diff)
downloadsonarqube-9324c65fc550b13cb5593f2f958e34d246f7c42b.tar.gz
sonarqube-9324c65fc550b13cb5593f2f958e34d246f7c42b.zip
Fix quality flaws
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/TendencyAnalyser.java3
-rw-r--r--plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/TendencyDecorator.java11
2 files changed, 5 insertions, 9 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/TendencyAnalyser.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/TendencyAnalyser.java
index 92c964f7b61..0a62a0244ba 100644
--- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/TendencyAnalyser.java
+++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/TendencyAnalyser.java
@@ -105,7 +105,8 @@ public class TendencyAnalyser {
private double sumXPower2;
private double sumYPower2;
private double sumXY;
- private double yIntercept; // not used today
+ // not used today
+ private double yIntercept;
private Double slope;
private Double correlationRate;
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/TendencyDecorator.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/TendencyDecorator.java
index 6868cba1a95..39003a8e688 100644
--- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/TendencyDecorator.java
+++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/TendencyDecorator.java
@@ -24,13 +24,7 @@ import com.google.common.collect.ListMultimap;
import com.google.common.collect.Lists;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.time.DateUtils;
-import org.sonar.api.batch.Decorator;
-import org.sonar.api.batch.DecoratorBarriers;
-import org.sonar.api.batch.DecoratorContext;
-import org.sonar.api.batch.DependedUpon;
-import org.sonar.api.batch.DependsUpon;
-import org.sonar.api.batch.TimeMachine;
-import org.sonar.api.batch.TimeMachineQuery;
+import org.sonar.api.batch.*;
import org.sonar.api.measures.Measure;
import org.sonar.api.measures.Metric;
import org.sonar.api.measures.MetricFinder;
@@ -81,7 +75,8 @@ public class TendencyDecorator implements Decorator {
protected TimeMachineQuery initQuery(Project project) {
int days = configuration.getTendencyPeriodInDays();
- query = new TimeMachineQuery(null) // resource is set after
+ // resource is set after
+ query = new TimeMachineQuery(null)
.setFrom(DateUtils.addDays(project.getAnalysisDate(), -days))
.setToCurrentAnalysis(true)
.setMetrics(metrics);