From: Julien Lancelot Date: Mon, 24 Feb 2014 16:36:09 +0000 (+0100) Subject: Fix quality flaws X-Git-Tag: 4.2~57 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fb0bca80597dc923ae633d2d34ee42885883c07c;p=sonarqube.git Fix quality flaws --- diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/WorkDuration.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/WorkDuration.java index 6ed686036dc..33f808655ca 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/WorkDuration.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/WorkDuration.java @@ -55,9 +55,9 @@ public class WorkDuration implements Serializable { } public static WorkDuration create(int days, int hours, int minutes, int hoursInDay) { - long durationInSeconds = days * hoursInDay * 60 * 60; - durationInSeconds += hours * 60 * 60; - durationInSeconds += minutes * 60; + long durationInSeconds = 3600L * days * hoursInDay; + durationInSeconds += 3600L * hours; + durationInSeconds += 60L * minutes; return new WorkDuration(durationInSeconds, days, hours, minutes, hoursInDay); }