diff options
Diffstat (limited to 'sonar-duplications/src')
-rw-r--r-- | sonar-duplications/src/main/java/org/sonar/duplications/index/PackedMemoryCloneIndex.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sonar-duplications/src/main/java/org/sonar/duplications/index/PackedMemoryCloneIndex.java b/sonar-duplications/src/main/java/org/sonar/duplications/index/PackedMemoryCloneIndex.java index ad49a4016e5..ed080415de8 100644 --- a/sonar-duplications/src/main/java/org/sonar/duplications/index/PackedMemoryCloneIndex.java +++ b/sonar-duplications/src/main/java/org/sonar/duplications/index/PackedMemoryCloneIndex.java @@ -243,13 +243,13 @@ public class PackedMemoryCloneIndex extends AbstractCloneIndex { } private boolean isLessByHash(int i, int j) { - i *= blockInts; - j *= blockInts; - for (int k = 0; k < hashInts; k++, i++, j++) { - if (blockData[i] < blockData[j]) { + int i2 = i * blockInts; + int j2 = j * blockInts; + for (int k = 0; k < hashInts; k++, i2++, j2++) { + if (blockData[i2] < blockData[j2]) { return true; } - if (blockData[i] > blockData[j]) { + if (blockData[i2] > blockData[j2]) { return false; } } |