javapackages-bootstrap/0002-Ensure-stable-order-of-Sisu-component-list.patch
Marián Konček 269aa7a6e2 Ensure stable order of Sisu component list
Related: RHEL-17126
2024-02-02 15:45:24 +01:00

39 lines
1.3 KiB
Diff

From 1338780416e7f046b72d5d269bf6167e5281f66e Mon Sep 17 00:00:00 2001
From: Marian Koncek <mkoncek@redhat.com>
Date: Fri, 2 Feb 2024 14:05:08 +0100
Subject: [PATCH] Ensure stable order of Sisu component list Upstream related
fix:
https://github.com/fedora-java/javapackages-bootstrap/commit/d18cc7bd703f6a53baeb6145ac0c876d56cef46a
---
mbi/cdc/src/org/fedoraproject/mbi/tool/cdc/CdcTool.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/mbi/cdc/src/org/fedoraproject/mbi/tool/cdc/CdcTool.java b/mbi/cdc/src/org/fedoraproject/mbi/tool/cdc/CdcTool.java
index 6965b0c..bf22268 100644
--- a/mbi/cdc/src/org/fedoraproject/mbi/tool/cdc/CdcTool.java
+++ b/mbi/cdc/src/org/fedoraproject/mbi/tool/cdc/CdcTool.java
@@ -20,8 +20,8 @@ import java.lang.annotation.Annotation;
import java.lang.reflect.Field;
import java.nio.file.Files;
import java.nio.file.Path;
-import java.util.ArrayList;
-import java.util.List;
+import java.util.Set;
+import java.util.TreeSet;
import java.util.stream.Collectors;
import javax.inject.Named;
@@ -62,7 +62,7 @@ public class CdcTool
private Element plexusComponents;
- private List<String> sisuComponents = new ArrayList<>();
+ private Set<String> sisuComponents = new TreeSet<>();
@Override
public void initialize()
--
2.43.0