From 62b6425bb76e0696d274af655e5db16c3625a526 Mon Sep 17 00:00:00 2001 From: Christian Berger Date: Fri, 27 Oct 2023 15:59:38 +0200 Subject: [PATCH] fix: Reorder the modifiers to comply with the Java Language Specification. --- .../problem/postprocessing/PostProcessorsRegistry.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/src/main/java/com/tietoevry/quarkus/resteasy/problem/postprocessing/PostProcessorsRegistry.java b/runtime/src/main/java/com/tietoevry/quarkus/resteasy/problem/postprocessing/PostProcessorsRegistry.java index c00cfdff..2c0eeb64 100644 --- a/runtime/src/main/java/com/tietoevry/quarkus/resteasy/problem/postprocessing/PostProcessorsRegistry.java +++ b/runtime/src/main/java/com/tietoevry/quarkus/resteasy/problem/postprocessing/PostProcessorsRegistry.java @@ -20,13 +20,13 @@ public PostProcessorsRegistry() { * Removes all registered post-processors and registers default ones. Used mainly for Quarkus dev mode (live-reload) tests * where there's a need to reset registered processors because of config change. */ - synchronized public void reset() { + public synchronized void reset() { processors.clear(); register(new ProblemLogger(LoggerFactory.getLogger("http-problem"))); register(new ProblemDefaultsProvider()); } - synchronized public void register(ProblemPostProcessor processor) { + public synchronized void register(ProblemPostProcessor processor) { processors.add(processor); processors.sort(ProblemPostProcessor.DEFAULT_ORDERING); }