From fb0bca80597dc923ae633d2d34ee42885883c07c Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Mon, 24 Feb 2014 17:36:09 +0100 Subject: [PATCH] Fix quality flaws --- .../src/main/java/org/sonar/api/utils/WorkDuration.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } -- 2.39.5