aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2014-03-07 13:25:42 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2014-03-07 13:25:42 +0100
commit6b0986efbfcbac2048f18ff9e9eae55f0d18b616 (patch)
treedad4116fede50a74d2c927803ccfb4473bfea00e /sonar-plugin-api
parent81e4712486a4ac4562c34cabfb25abc610119f4a (diff)
downloadsonarqube-6b0986efbfcbac2048f18ff9e9eae55f0d18b616.tar.gz
sonarqube-6b0986efbfcbac2048f18ff9e9eae55f0d18b616.zip
Fix quality flaws
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/utils/internal/WorkDuration.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/internal/WorkDuration.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/internal/WorkDuration.java
index c6c0319495f..4fbdf272c65 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/internal/WorkDuration.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/internal/WorkDuration.java
@@ -100,7 +100,7 @@ public class WorkDuration implements Serializable {
}
static WorkDuration createFromMinutes(long duration, int hoursInDay) {
- int days = ((Double) (duration / hoursInDay / 60d)).intValue();
+ int days = ((Double) ((double) duration / hoursInDay / 60d)).intValue();
Long currentDurationInMinutes = duration - (60L * days * hoursInDay);
int hours = ((Double) (currentDurationInMinutes / 60d)).intValue();
currentDurationInMinutes = currentDurationInMinutes - (60L * hours);