diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-08-23 17:25:17 +0200 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-08-24 09:00:27 +0200 |
commit | 9eb83a4ee9e247c4ab8af35b8e30c2f8c220ca68 (patch) | |
tree | c0145b7d1fb1565eabca08413c7c53cfe56129ea | |
parent | 6d7cf32691478b8488c2692a32b543169ab6dee0 (diff) | |
download | sonarqube-9eb83a4ee9e247c4ab8af35b8e30c2f8c220ca68.tar.gz sonarqube-9eb83a4ee9e247c4ab8af35b8e30c2f8c220ca68.zip |
SONAR-8013 fix bad matche choice in file move detection
-rw-r--r-- | server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/filemove/FileMoveDetectionStep.java | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |