aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-08-23 17:25:17 +0200
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-08-24 09:00:27 +0200
commit9eb83a4ee9e247c4ab8af35b8e30c2f8c220ca68 (patch)
treec0145b7d1fb1565eabca08413c7c53cfe56129ea
parent6d7cf32691478b8488c2692a32b543169ab6dee0 (diff)
downloadsonarqube-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.java2
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();