aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2015-05-07 15:20:08 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2015-05-07 15:20:08 +0200
commitf7c5f42cf3ca81ff948ae08afe50d15c09412bfc (patch)
tree67a180d697e13b419b7741466fceaa6f5806f5bb /sonar-batch
parent223cca42ca4f24a6d5790077eb0e638d421276f4 (diff)
downloadsonarqube-f7c5f42cf3ca81ff948ae08afe50d15c09412bfc.tar.gz
sonarqube-f7c5f42cf3ca81ff948ae08afe50d15c09412bfc.zip
Fix quality flaws
Diffstat (limited to 'sonar-batch')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/debt/DebtDecorator.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/debt/DebtDecorator.java b/sonar-batch/src/main/java/org/sonar/batch/debt/DebtDecorator.java
index d9912f45b4b..f4521d664a6 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/debt/DebtDecorator.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/debt/DebtDecorator.java
@@ -202,7 +202,7 @@ public final class DebtDecorator implements Decorator {
public void add(@Nullable E key, Long value) {
if (key != null) {
Long currentValue = sumByKeys.get(key);
- sumByKeys.put(key, (currentValue != null) ? (currentValue + value) : value);
+ sumByKeys.put(key, currentValue != null ? currentValue + value : value);
}
}