]> source.dussan.org Git - sonarqube.git/commitdiff
Fix some quality flaws
authorJulien HENRY <julien.henry@sonarsource.com>
Fri, 31 Oct 2014 08:37:45 +0000 (09:37 +0100)
committerJulien HENRY <julien.henry@sonarsource.com>
Fri, 31 Oct 2014 08:38:03 +0000 (09:38 +0100)
plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/IssueTrackingResult.java

index 147d89ef01c04d9a0deadba9d89cf02d9f8e9e43..dd69da8e23c08e693a97adc023a957fb05d50ea3 100644 (file)
@@ -87,7 +87,8 @@ class IssueTrackingResult {
     }
     unmatchedByRuleAndKey.get(ruleKey).put(i.getKee(), i);
     Map<Integer, Multimap<String, IssueDto>> unmatchedForRule = unmatchedByRuleAndLineAndChecksum.get(ruleKey);
-    Integer lineNotNull = i.getLine() != null ? i.getLine() : 0;
+    Integer line = i.getLine();
+    Integer lineNotNull = line != null ? line : 0;
     if (!unmatchedForRule.containsKey(lineNotNull)) {
       unmatchedForRule.put(lineNotNull, HashMultimap.<String, IssueDto>create());
     }