]> source.dussan.org Git - sonarqube.git/commitdiff
Use LinkedHashSet to make output order consistent
authorJulien HENRY <julien.henry@sonarsource.com>
Mon, 7 Aug 2017 16:27:07 +0000 (18:27 +0200)
committerJulien HENRY <julien.henry@sonarsource.com>
Tue, 8 Aug 2017 08:51:13 +0000 (10:51 +0200)
sonar-scanner-engine/src/main/java/org/sonar/scanner/scm/DefaultBlameOutput.java

index 5311b80733086855913ddd952fd7e1a9bc5581bd..5e12f1e821af31e217872038b40b76fb6ef676c7 100644 (file)
@@ -21,7 +21,7 @@ package org.sonar.scanner.scm;
 
 import com.google.common.base.Preconditions;
 import java.util.HashMap;
-import java.util.HashSet;
+import java.util.LinkedHashSet;
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
@@ -44,7 +44,7 @@ class DefaultBlameOutput implements BlameOutput {
   private static final Logger LOG = Loggers.get(DefaultBlameOutput.class);
 
   private final ScannerReportWriter writer;
-  private final Set<InputFile> allFilesToBlame = new HashSet<>();
+  private final Set<InputFile> allFilesToBlame = new LinkedHashSet<>();
   private ProgressReport progressReport;
   private int count;
   private int total;