From: Sébastien Lesaint Date: Tue, 23 Aug 2016 15:25:17 +0000 (+0200) Subject: SONAR-8013 fix bad matche choice in file move detection X-Git-Tag: 6.1-RC1~321 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F1166%2Fhead;p=sonarqube.git SONAR-8013 fix bad matche choice in file move detection --- diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/filemove/FileMoveDetectionStep.java b/server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/filemove/FileMoveDetectionStep.java index b62ef762049..a000a765372 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/filemove/FileMoveDetectionStep.java +++ b/server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/filemove/FileMoveDetectionStep.java @@ -256,7 +256,7 @@ public class FileMoveDetectionStep implements ComputationStep { continue; } if (matchesToValidate.size() == 1) { - Match match = matches.get(0); + Match match = matchesToValidate.get(0); electedMatches.add(match); } else { matchesPerFileForScore.clear();