Skip to content

Commit

Permalink
fix: Reorder the modifiers to comply with the Java Language Specifica…
Browse files Browse the repository at this point in the history
…tion.
  • Loading branch information
chberger committed Oct 27, 2023
1 parent 62b67d8 commit 62b6425
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 62b6425

Please sign in to comment.