aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-duplications/src
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-04-24 11:22:17 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-04-24 11:22:17 +0200
commit3612afdc027b0d4052e053f1e47de286d8d7d1a5 (patch)
tree2bf2a561446e8c79cdd21fa166831ad4bbe34510 /sonar-duplications/src
parent5b0b77ac366811d1aa67e15adc10b09eb6351548 (diff)
downloadsonarqube-3612afdc027b0d4052e053f1e47de286d8d7d1a5.tar.gz
sonarqube-3612afdc027b0d4052e053f1e47de286d8d7d1a5.zip
Fix quality flaws
Diffstat (limited to 'sonar-duplications/src')
-rw-r--r--sonar-duplications/src/main/java/org/sonar/duplications/detector/original/BlocksGroup.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/sonar-duplications/src/main/java/org/sonar/duplications/detector/original/BlocksGroup.java b/sonar-duplications/src/main/java/org/sonar/duplications/detector/original/BlocksGroup.java
index 6cdd4c0cbcf..063d98891ac 100644
--- a/sonar-duplications/src/main/java/org/sonar/duplications/detector/original/BlocksGroup.java
+++ b/sonar-duplications/src/main/java/org/sonar/duplications/detector/original/BlocksGroup.java
@@ -148,9 +148,7 @@ final class BlocksGroup {
j++;
continue;
}
- if (c == 0) {
- c = block1.getIndexInFile() - indexCorrection - block2.getIndexInFile();
- }
+ c = block1.getIndexInFile() - indexCorrection - block2.getIndexInFile();
if (c < 0) {
// list1[i] < list2[j]
break;