aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-duplications
diff options
context:
space:
mode:
authorZeeshan Asghar <zeeshan.asghar@devfactory.com>2016-01-20 15:51:03 +0500
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2016-01-29 17:09:25 +0100
commit7c45001a63725d8898496c84c5e51fae0263a720 (patch)
treefdae8140cc7fa69fa66c6ddde6fd0a73af2410d6 /sonar-duplications
parentbf071cefa1d04303ae246de745a8856c64b9617f (diff)
downloadsonarqube-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.java2
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);
}