aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-core-plugin/src
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2010-12-06 10:39:25 +0000
committersimonbrandhof <simon.brandhof@gmail.com>2010-12-06 10:39:25 +0000
commit0c4c2935d327b425ed8049b6eccaf1d000d0591c (patch)
tree12f80be18e204db8c9c88c5c05c6d75c0b33d7e2 /plugins/sonar-core-plugin/src
parente21bc25776af58ec7983138c909159d2bd8c0bde (diff)
downloadsonarqube-0c4c2935d327b425ed8049b6eccaf1d000d0591c.tar.gz
sonarqube-0c4c2935d327b425ed8049b6eccaf1d000d0591c.zip
Minor change : use Maps.newHashMap() instead of new HashMap<...>()
Diffstat (limited to 'plugins/sonar-core-plugin/src')
-rw-r--r--plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/ViolationsDecorator.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/ViolationsDecorator.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/ViolationsDecorator.java
index 9951bcc87da..c52501beec9 100644
--- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/ViolationsDecorator.java
+++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/ViolationsDecorator.java
@@ -20,6 +20,7 @@
package org.sonar.plugins.core.sensors;
import com.google.common.collect.HashMultiset;
+import com.google.common.collect.Maps;
import com.google.common.collect.Multiset;
import org.sonar.api.batch.*;
import org.sonar.api.measures.*;
@@ -38,7 +39,7 @@ public class ViolationsDecorator implements Decorator {
// temporary data for current resource
private Multiset<Rule> rules = HashMultiset.create();
private Multiset<RulePriority> priorities = HashMultiset.create();
- private Map<Rule, RulePriority> ruleToLevel = new HashMap<Rule, RulePriority>();
+ private Map<Rule, RulePriority> ruleToLevel = Maps.newHashMap();
private int total = 0;
public boolean shouldExecuteOnProject(Project project) {