]> source.dussan.org Git - sonarqube.git/commitdiff
Fix some quality flaws
authorEvgeny Mandrikov <mandrikov@gmail.com>
Wed, 5 Dec 2012 21:47:39 +0000 (22:47 +0100)
committerEvgeny Mandrikov <mandrikov@gmail.com>
Wed, 5 Dec 2012 21:47:39 +0000 (22:47 +0100)
sonar-duplications/src/main/java/org/sonar/duplications/detector/original/BlocksGroup.java

index ba2dc5c1887479d8ca353df7e8e5fb143c963b40..16d609f2a4caffbc02ad5e4b012ce82436e2a5e9 100644 (file)
@@ -151,13 +151,16 @@ final class BlocksGroup {
       if (c == 0) {
         c = block1.getIndexInFile() - indexCorrection - block2.getIndexInFile();
       }
-      if (c < 0) { // list1[i] < list2[j]
+      if (c < 0) {
+        // list1[i] < list2[j]
         break;
       }
-      if (c != 0) { // list1[i] != list2[j]
+      if (c != 0) {
+        // list1[i] != list2[j]
         j++;
       }
-      if (c == 0) { // list1[i] == list2[j]
+      if (c == 0) {
+        // list1[i] == list2[j]
         i++;
         j++;
       }