diff options
author | Julien Lancelot <julien.lancelot@gmail.com> | 2014-02-20 08:29:44 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@gmail.com> | 2014-02-25 18:55:24 +0100 |
commit | 6690248e5ed039ea734aa09b6ccdd4a311c0a731 (patch) | |
tree | a2856a74d94d3c694d9ebd02793a6d00a157a203 | |
parent | a1beba48dc91143e0531565fc2cb14011d82f1bb (diff) | |
download | sonarqube-6690248e5ed039ea734aa09b6ccdd4a311c0a731.tar.gz sonarqube-6690248e5ed039ea734aa09b6ccdd4a311c0a731.zip |
SONAR-4996 Update issue debt to seconds (backend + display)
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/utils/WorkDurationFactory.java | 7 |
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); + } + } |