From 3612afdc027b0d4052e053f1e47de286d8d7d1a5 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Fri, 24 Apr 2015 11:22:17 +0200 Subject: Fix quality flaws --- .../java/org/sonar/duplications/detector/original/BlocksGroup.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sonar-duplications/src') 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; -- cgit v1.2.3