aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src/main/java/org/sonar/api/i18n
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2014-03-05 19:22:20 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2014-03-05 19:22:20 +0100
commit6c7dcb3a2af976d6cfdf7ac7dec2cedbe6013619 (patch)
treef8e4f151a9f103568db3f006de6661baf9b098f8 /sonar-plugin-api/src/main/java/org/sonar/api/i18n
parent1c8bb2241f785b7e83827ea1d4d74d881f415612 (diff)
downloadsonarqube-6c7dcb3a2af976d6cfdf7ac7dec2cedbe6013619.tar.gz
sonarqube-6c7dcb3a2af976d6cfdf7ac7dec2cedbe6013619.zip
SONAR-5056 Update Issue.debt from Long to Duration
Diffstat (limited to 'sonar-plugin-api/src/main/java/org/sonar/api/i18n')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/i18n/I18n.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/i18n/I18n.java b/sonar-plugin-api/src/main/java/org/sonar/api/i18n/I18n.java
index c11356bd7c0..e30990f12dc 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/i18n/I18n.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/i18n/I18n.java
@@ -21,6 +21,7 @@ package org.sonar.api.i18n;
import org.sonar.api.BatchComponent;
import org.sonar.api.ServerComponent;
+import org.sonar.api.utils.Duration;
import javax.annotation.Nullable;
@@ -105,10 +106,10 @@ public interface I18n extends ServerComponent, BatchComponent {
/**
* Return the formatted work duration.
* <br>
- * Example : format(Locale.ENGLISH, WorkDuration.create(10, 2, 0, 8)) -> 10d 2h
+ * Example : format(Locale.ENGLISH, Duration.create(10 * 24 * 60 + 2 * 60)) -> 10d 2h
*
* @since 4.3
*/
- String formatWorkDuration(Locale locale, long duration);
+ String formatWorkDuration(Locale locale, Duration duration);
}