From c441cc61073cf02f2e0d0f570a9e5f57f2f6337a Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Mon, 10 Oct 2022 11:23:34 +0300 Subject: [PATCH] Revert "Ensure that build time writers are properly sorted" This reverts commit fc76c76d954990ffed2a5a7329a97cee0f7c856d. --- .../org/jboss/resteasy/reactive/common/core/Serialisers.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/core/Serialisers.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/core/Serialisers.java index 72a0a6bb5d1e3..3f0b755be1ab0 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/core/Serialisers.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/core/Serialisers.java @@ -151,9 +151,7 @@ public List> findBuildTimeWriters(Class entityType, Runt } } - var resourceWriters = findResourceWriters(writers, klass, produces, runtimeType); - resourceWriters.sort(new ResourceWriter.ResourceWriterComparator(produces)); - return toMessageBodyWriters(resourceWriters); + return toMessageBodyWriters(findResourceWriters(writers, klass, produces, runtimeType)); } protected List findResourceWriters(QuarkusMultivaluedMap, ResourceWriter> writers, Class klass,