]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-8013 fix bad matche choice in file move detection 1166/head
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Tue, 23 Aug 2016 15:25:17 +0000 (17:25 +0200)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Wed, 24 Aug 2016 07:00:27 +0000 (09:00 +0200)
server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/filemove/FileMoveDetectionStep.java

index b62ef762049f978555c2c733c21f754b692f6afd..a000a76537278afb98616b32e64347b89a579fdc 100644 (file)
@@ -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();