]> source.dussan.org Git - sonarqube.git/commitdiff
Minor change : use Maps.newHashMap() instead of new HashMap<...>()
authorsimonbrandhof <simon.brandhof@gmail.com>
Mon, 6 Dec 2010 10:39:25 +0000 (10:39 +0000)
committersimonbrandhof <simon.brandhof@gmail.com>
Mon, 6 Dec 2010 10:39:25 +0000 (10:39 +0000)
plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/ViolationsDecorator.java

index 9951bcc87da5d4884df11e82f9c4b2f40e9f0fc7..c52501beec9de18feca8b9706affaa055f386da2 100644 (file)
@@ -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) {