diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-05-07 15:20:08 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-05-07 15:20:08 +0200 |
commit | f7c5f42cf3ca81ff948ae08afe50d15c09412bfc (patch) | |
tree | 67a180d697e13b419b7741466fceaa6f5806f5bb /sonar-plugin-api | |
parent | 223cca42ca4f24a6d5790077eb0e638d421276f4 (diff) | |
download | sonarqube-f7c5f42cf3ca81ff948ae08afe50d15c09412bfc.tar.gz sonarqube-f7c5f42cf3ca81ff948ae08afe50d15c09412bfc.zip |
Fix quality flaws
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/utils/Durations.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/Durations.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/Durations.java index 9089c441836..05f2ba422d5 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/Durations.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/Durations.java @@ -114,15 +114,15 @@ public class Durations implements BatchComponent, ServerComponent { private String format(Locale locale, int days, int hours, int minutes, boolean isNegative){ StringBuilder message = new StringBuilder(); if (days > 0) { - message.append(message(locale, "work_duration.x_days", isNegative ? (-1 * days) : days)); + message.append(message(locale, "work_duration.x_days", isNegative ? -1 * days : days)); } if (displayHours(days, hours)) { addSpaceIfNeeded(message); - message.append(message(locale, "work_duration.x_hours", (isNegative && message.length() == 0) ? (-1 * hours) : hours)); + message.append(message(locale, "work_duration.x_hours", isNegative && message.length() == 0 ? -1 * hours : hours)); } if (displayMinutes(days, hours, minutes)) { addSpaceIfNeeded(message); - message.append(message(locale, "work_duration.x_minutes", (isNegative && message.length() == 0) ? (-1 * minutes) : minutes)); + message.append(message(locale, "work_duration.x_minutes", isNegative && message.length() == 0 ? -1 * minutes : minutes)); } return message.toString(); } |