From 6e517d17ea5071849c2d3e6685ab346735c49ada Mon Sep 17 00:00:00 2001 From: GedMarc Date: Mon, 16 Dec 2024 15:27:23 +0200 Subject: [PATCH] Dont require destroyers to be sortable, to allow for any class setup --- src/main/java/com/guicedee/guicedinjection/GuiceContext.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/guicedee/guicedinjection/GuiceContext.java b/src/main/java/com/guicedee/guicedinjection/GuiceContext.java index c6a639b..41d4e7f 100644 --- a/src/main/java/com/guicedee/guicedinjection/GuiceContext.java +++ b/src/main/java/com/guicedee/guicedinjection/GuiceContext.java @@ -962,7 +962,7 @@ public Set loadPreStartupServices() */ public Set loadPreDestroyServices() { - return new TreeSet<>(getLoader(IGuicePreDestroy.class, true, ServiceLoader.load(IGuicePreDestroy.class))); + return new LinkedHashSet<>(getLoader(IGuicePreDestroy.class, true, ServiceLoader.load(IGuicePreDestroy.class))); } /**