summaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2014-12-08 12:20:13 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2014-12-08 17:00:44 +0100
commit6e6dffc3e011c212e721c101e5c2c341a77e055d (patch)
tree21ef492688d8c6bb300816487a744cd535da8eb8 /sonar-plugin-api
parent52809a748da8bf2c3b2e43f71a9aefb833bfe94c (diff)
downloadsonarqube-6e6dffc3e011c212e721c101e5c2c341a77e055d.tar.gz
sonarqube-6e6dffc3e011c212e721c101e5c2c341a77e055d.zip
Fix quality flaw
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 b13209bb0e8..73657269f17 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
@@ -127,7 +127,7 @@ public class WorkDuration implements Serializable {
workingDays += nbAdditionalDays;
workingHours = hours - (nbAdditionalDays * hoursInDay);
}
- return workingDays * DAY_POSITION_IN_LONG + workingHours * HOUR_POSITION_IN_LONG + minutes * MINUTE_POSITION_IN_LONG;
+ return 1L * workingDays * DAY_POSITION_IN_LONG + workingHours * HOUR_POSITION_IN_LONG + minutes * MINUTE_POSITION_IN_LONG;
}
public long toMinutes() {