diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-04-24 11:22:17 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-04-24 11:22:17 +0200 |
commit | 3612afdc027b0d4052e053f1e47de286d8d7d1a5 (patch) | |
tree | 2bf2a561446e8c79cdd21fa166831ad4bbe34510 /sonar-duplications/src | |
parent | 5b0b77ac366811d1aa67e15adc10b09eb6351548 (diff) | |
download | sonarqube-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.java | 4 |
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; |