aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2014-02-17 15:34:07 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2014-02-17 15:34:07 +0100
commit0444588a3328e3f0c6857dad2e78e99486deff4d (patch)
tree7bf0f38816c78a881087577f753df873f0d0744b /plugins
parentdb57555d0d0ba1a58e4c9d9dc66632242166cde5 (diff)
downloadsonarqube-0444588a3328e3f0c6857dad2e78e99486deff4d.tar.gz
sonarqube-0444588a3328e3f0c6857dad2e78e99486deff4d.zip
Fix quality flaws
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/technicaldebt/TechnicalDebtDecorator.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/technicaldebt/TechnicalDebtDecorator.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/technicaldebt/TechnicalDebtDecorator.java
index 6813e1f1971..73695338842 100644
--- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/technicaldebt/TechnicalDebtDecorator.java
+++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/technicaldebt/TechnicalDebtDecorator.java
@@ -167,13 +167,9 @@ public final class TechnicalDebtDecorator implements Decorator {
}
private double computeTechnicalDebt(Metric metric, DecoratorContext context, Requirement requirement, Collection<Issue> issues) {
- WorkDuration debt = workDurationFactory.createFromWorkingLong(0l);
-// double value = 0d;
+ WorkDuration debt = workDurationFactory.createFromWorkingValue(0, WorkDuration.UNIT.MINUTES);
if (issues != null) {
for (Issue issue : issues) {
-// if (debt != null) {
-// value += debt.toWorkingDays();
-// }
debt = debt.add(((DefaultIssue) issue).technicalDebt());
}
}