aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2014-02-10 18:08:00 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2014-02-10 18:08:20 +0100
commit9ea9f3c3ea844683314926282da93ab743686806 (patch)
tree3530180c4aee2731e0fe8e33e9dcb527bc5490aa /sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt
parent59559f3f9f711e3c8468d2419caf944979e27580 (diff)
downloadsonarqube-9ea9f3c3ea844683314926282da93ab743686806.tar.gz
sonarqube-9ea9f3c3ea844683314926282da93ab743686806.zip
Merge WorkDayDuration with WorkUnit
Diffstat (limited to 'sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/batch/internal/DefaultRequirement.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/batch/internal/DefaultRequirement.java b/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/batch/internal/DefaultRequirement.java
index 66f4778c5e4..8f80e3fc8ec 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/batch/internal/DefaultRequirement.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/batch/internal/DefaultRequirement.java
@@ -47,8 +47,8 @@ public class DefaultRequirement implements Requirement {
private Date updatedAt;
public DefaultRequirement() {
- this.factor = WorkUnit.create(0d, WorkUnit.DEFAULT_UNIT);
- this.offset = WorkUnit.create(0d, WorkUnit.DEFAULT_UNIT);
+ this.factor = new WorkUnit.Builder().setDays(0).build();
+ this.offset = new WorkUnit.Builder().setDays(0).build();
}
public Integer id() {