Get the behavior back from 3.x
@@ -287,7 +287,7 @@ final class RouteState {
this.order,
this.enabled,
this.methods,
- this.consumes == null ? new HashSet<>() : new HashSet<>(this.consumes),
+ this.consumes == null ? new LinkedHashSet<>() : new LinkedHashSet<>(this.consumes),
this.emptyBodyPermittedWithConsumes,
this.produces,
this.contextHandlers,
@@ -372,7 +372,7 @@ final class RouteState {
this.methods,
this.consumes,
this.emptyBodyPermittedWithConsumes,
- this.produces == null ? new HashSet<>() : new HashSet<>(this.produces),
+ this.produces == null ? new LinkedHashSet<>() : new LinkedHashSet<>(this.produces),
this.contextHandlers,
this.failureHandlers,
this.added,
