diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2017-07-26 08:57:52 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2017-07-26 08:57:52 +0200 |
commit | 3a988bb88a5c66f651682083496159a7495e1acb (patch) | |
tree | 1da6987a371c2278cdea0802d7812fbc2f734297 /sonar-scanner-engine | |
parent | e5cb819995b40afd98fc49976e35b73ec702d649 (diff) | |
download | sonarqube-3a988bb88a5c66f651682083496159a7495e1acb.tar.gz sonarqube-3a988bb88a5c66f651682083496159a7495e1acb.zip |
Fix Quality flaws
Diffstat (limited to 'sonar-scanner-engine')
-rw-r--r-- | sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/ignore/pattern/LineRange.java | 6 | ||||
-rw-r--r-- | sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/tracking/TrackedIssue.java | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/ignore/pattern/LineRange.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/ignore/pattern/LineRange.java index 0f49d446504..19dc312dd8d 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/ignore/pattern/LineRange.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/ignore/pattern/LineRange.java @@ -65,10 +65,10 @@ public class LineRange { @Override public int hashCode() { - final int prime = 31; + final int PRIME = 31; int result = 1; - result = prime * result + from; - result = prime * result + to; + result = PRIME * result + from; + result = PRIME * result + to; return result; } diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/tracking/TrackedIssue.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/tracking/TrackedIssue.java index b9446d52807..d1b68964093 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/tracking/TrackedIssue.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/tracking/TrackedIssue.java @@ -227,9 +227,9 @@ public class TrackedIssue implements Trackable, Serializable { @Override public int hashCode() { - final int prime = 31; + final int PRIME = 31; int result = 1; - result = prime * result + ((key == null) ? 0 : key.hashCode()); + result = PRIME * result + ((key == null) ? 0 : key.hashCode()); return result; } |