diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2014-10-31 09:37:45 +0100 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2014-10-31 09:38:03 +0100 |
commit | 52984980526070a1940608fc250cc2e09ed2ddab (patch) | |
tree | 3b48009af31dfbc2a82960fb0ca8a5d5f895a9a6 /plugins/sonar-core-plugin | |
parent | 071b90e3b8f6de5fe69f4bb4ac7fec66ea95115a (diff) | |
download | sonarqube-52984980526070a1940608fc250cc2e09ed2ddab.tar.gz sonarqube-52984980526070a1940608fc250cc2e09ed2ddab.zip |
Fix some quality flaws
Diffstat (limited to 'plugins/sonar-core-plugin')
-rw-r--r-- | plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/IssueTrackingResult.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/IssueTrackingResult.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/IssueTrackingResult.java index 147d89ef01c..dd69da8e23c 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/IssueTrackingResult.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/IssueTrackingResult.java @@ -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()); } |