From 704bad7c02b91b2706509a19742fe080580c0de2 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Mon, 7 Aug 2017 18:27:07 +0200 Subject: [PATCH] Use LinkedHashSet to make output order consistent --- .../main/java/org/sonar/scanner/scm/DefaultBlameOutput.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/scm/DefaultBlameOutput.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/scm/DefaultBlameOutput.java index 5311b807330..5e12f1e821a 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/scm/DefaultBlameOutput.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/scm/DefaultBlameOutput.java @@ -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 allFilesToBlame = new HashSet<>(); + private final Set allFilesToBlame = new LinkedHashSet<>(); private ProgressReport progressReport; private int count; private int total; -- 2.39.5