From 9eb83a4ee9e247c4ab8af35b8e30c2f8c220ca68 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Lesaint?= Date: Tue, 23 Aug 2016 17:25:17 +0200 Subject: [PATCH] SONAR-8013 fix bad matche choice in file move detection --- .../task/projectanalysis/filemove/FileMoveDetectionStep.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.5