aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2013-07-31 10:28:10 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2013-07-31 10:28:10 +0200
commita5dc30e14f1d9b7efc86968b2c49889d6b61b2f4 (patch)
treed2984fd40dc320d5205e301884e88fa3c20999b0 /sonar-core
parentef9ec75e79af80ce5d7de774ab4c7d29f6f82e72 (diff)
downloadsonarqube-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.java9
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);
}
}