diff options
author | Zeeshan Asghar <zeeshan.asghar@devfactory.com> | 2016-01-20 15:51:03 +0500 |
---|---|---|
committer | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2016-01-29 17:09:25 +0100 |
commit | 7c45001a63725d8898496c84c5e51fae0263a720 (patch) | |
tree | fdae8140cc7fa69fa66c6ddde6fd0a73af2410d6 /sonar-duplications | |
parent | bf071cefa1d04303ae246de745a8856c64b9617f (diff) | |
download | sonarqube-7c45001a63725d8898496c84c5e51fae0263a720.tar.gz sonarqube-7c45001a63725d8898496c84c5e51fae0263a720.zip |
squid:UselessPrenthesesCheck Useless parentheses around expression should be removed to prevent any misunderstanging
Diffstat (limited to 'sonar-duplications')
-rw-r--r-- | sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/SourceCode.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/SourceCode.java b/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/SourceCode.java index c124d395535..eae293c0d6f 100644 --- a/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/SourceCode.java +++ b/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/SourceCode.java @@ -144,7 +144,7 @@ public class SourceCode { public String getSlice(int startLine, int endLine) { StringBuffer sb = new StringBuffer(); List lines = cl.getCode(); - for (int i = (startLine == 0 ? startLine : (startLine - 1)); i < endLine && i < lines.size(); i++) { + for (int i = (startLine == 0 ? startLine : startLine - 1); i < endLine && i < lines.size(); i++) { if (sb.length() != 0) { sb.append(EOL); } |