diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2013-07-31 10:28:10 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2013-07-31 10:28:10 +0200 |
commit | a5dc30e14f1d9b7efc86968b2c49889d6b61b2f4 (patch) | |
tree | d2984fd40dc320d5205e301884e88fa3c20999b0 /sonar-core | |
parent | ef9ec75e79af80ce5d7de774ab4c7d29f6f82e72 (diff) | |
download | sonarqube-a5dc30e14f1d9b7efc86968b2c49889d6b61b2f4.tar.gz sonarqube-a5dc30e14f1d9b7efc86968b2c49889d6b61b2f4.zip |
Fix some quality flaws
Diffstat (limited to 'sonar-core')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/purge/PurgeProfiler.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/purge/PurgeProfiler.java b/sonar-core/src/main/java/org/sonar/core/purge/PurgeProfiler.java index f9c27da9bfc..218f0b48fd7 100644 --- a/sonar-core/src/main/java/org/sonar/core/purge/PurgeProfiler.java +++ b/sonar-core/src/main/java/org/sonar/core/purge/PurgeProfiler.java @@ -33,9 +33,9 @@ import java.util.Map.Entry; public class PurgeProfiler { - Map<String, Long> durations = new HashMap<String, Long>(); - long startTime; - String currentTable; + private Map<String, Long> durations = new HashMap<String, Long>(); + private long startTime; + private String currentTable; private final Clock clock; public PurgeProfiler() { @@ -90,8 +90,7 @@ public class PurgeProfiler { for (Entry<String, Long> item : sortedFullList) { if (i++ >= maxSize || item.getValue() == 0) { return result; - } - else { + } else { result.add(item); } } |