diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2015-11-10 16:32:56 +0100 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2015-11-10 16:33:15 +0100 |
commit | 69095c5d5bba7d613205536af1529c750fe4547d (patch) | |
tree | 94d8979f68432e40a54aceec248dee9b92f59507 /sonar-core | |
parent | 51269532c36b9314d698f026ca3e27ed52f15bf5 (diff) | |
download | sonarqube-69095c5d5bba7d613205536af1529c750fe4547d.tar.gz sonarqube-69095c5d5bba7d613205536af1529c750fe4547d.zip |
fix some quality flaws
Diffstat (limited to 'sonar-core')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/hash/SourceHashComputer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/hash/SourceHashComputer.java b/sonar-core/src/main/java/org/sonar/core/hash/SourceHashComputer.java index 03a608d477e..bf2d4dca8c1 100644 --- a/sonar-core/src/main/java/org/sonar/core/hash/SourceHashComputer.java +++ b/sonar-core/src/main/java/org/sonar/core/hash/SourceHashComputer.java @@ -33,7 +33,7 @@ public class SourceHashComputer { private final MessageDigest md5Digest = DigestUtils.getMd5Digest(); public void addLine(String line, boolean hasNextLine) { - String lineToHash = hasNextLine ? line + '\n' : line; + String lineToHash = hasNextLine ? (line + '\n') : line; this.md5Digest.update(lineToHash.getBytes(UTF_8)); } |