From 7e2621eae5966e691467469e3df901166e46db22 Mon Sep 17 00:00:00 2001 From: F43nd1r Date: Fri, 9 Dec 2016 07:39:24 +0100 Subject: [PATCH] fixed iteration order mixed while compiling set. --- src/main/java/org/acra/config/ConfigurationBuilder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/acra/config/ConfigurationBuilder.java b/src/main/java/org/acra/config/ConfigurationBuilder.java index 4dc50aa0c3..75056429ac 100644 --- a/src/main/java/org/acra/config/ConfigurationBuilder.java +++ b/src/main/java/org/acra/config/ConfigurationBuilder.java @@ -46,6 +46,7 @@ import java.util.EnumMap; import java.util.HashMap; import java.util.HashSet; +import java.util.LinkedHashSet; import java.util.Map; import java.util.Set; @@ -890,7 +891,7 @@ int connectionTimeout() { @NonNull Set reportContent() { - final Set reportContent = new HashSet(); + final Set reportContent = new LinkedHashSet(); if (customReportContent != null && customReportContent.length != 0) { if (ACRA.DEV_LOGGING) ACRA.log.d(LOG_TAG, "Using custom Report Fields"); reportContent.addAll(Arrays.asList(customReportContent));