From 9ea9f3c3ea844683314926282da93ab743686806 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Mon, 10 Feb 2014 18:08:00 +0100 Subject: Merge WorkDayDuration with WorkUnit --- .../sonar/api/technicaldebt/batch/internal/DefaultRequirement.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt') 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() { -- cgit v1.2.3