aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src/main/java/org
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@gmail.com>2014-02-20 08:29:44 +0100
committerJulien Lancelot <julien.lancelot@gmail.com>2014-02-25 18:55:24 +0100
commit6690248e5ed039ea734aa09b6ccdd4a311c0a731 (patch)
treea2856a74d94d3c694d9ebd02793a6d00a157a203 /sonar-plugin-api/src/main/java/org
parenta1beba48dc91143e0531565fc2cb14011d82f1bb (diff)
downloadsonarqube-6690248e5ed039ea734aa09b6ccdd4a311c0a731.tar.gz
sonarqube-6690248e5ed039ea734aa09b6ccdd4a311c0a731.zip
SONAR-4996 Update issue debt to seconds (backend + display)
Diffstat (limited to 'sonar-plugin-api/src/main/java/org')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/utils/WorkDurationFactory.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/WorkDurationFactory.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/WorkDurationFactory.java
index 03a2ed62b8e..79ac141f567 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/WorkDurationFactory.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/WorkDurationFactory.java
@@ -55,4 +55,11 @@ public final class WorkDurationFactory implements BatchComponent, ServerComponen
return settings.getInt(CoreProperties.HOURS_IN_DAY);
}
+ /**
+ * @since 4.3
+ */
+ public WorkDuration createFromSeconds(long durationInSeconds) {
+ return WorkDuration.createFromSeconds(durationInSeconds, hoursInDay);
+ }
+
}