diff --git a/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/support/ServerResponseResultHandler.java b/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/support/ServerResponseResultHandler.java index 83d3afe832b..2033404d78f 100644 --- a/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/support/ServerResponseResultHandler.java +++ b/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/support/ServerResponseResultHandler.java @@ -64,7 +64,6 @@ public class ServerResponseResultHandler implements HandlerResultHandler, Initia * Set the order for this result handler relative to others. *
By default set to 0. It is generally safe to place it early in the * order as it looks for a concrete return type. - * @param order the order */ public void setOrder(int order) { this.order = order; diff --git a/spring-websocket/src/main/java/org/springframework/web/socket/messaging/DefaultSimpUserRegistry.java b/spring-websocket/src/main/java/org/springframework/web/socket/messaging/DefaultSimpUserRegistry.java index 673ede2369d..dfa351bc656 100644 --- a/spring-websocket/src/main/java/org/springframework/web/socket/messaging/DefaultSimpUserRegistry.java +++ b/spring-websocket/src/main/java/org/springframework/web/socket/messaging/DefaultSimpUserRegistry.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2017 the original author or authors. + * Copyright 2002-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -39,8 +39,8 @@ import org.springframework.util.Assert; /** * A default implementation of {@link SimpUserRegistry} that relies on - * {@link AbstractSubProtocolEvent} application context events to keep track of - * connected users and their subscriptions. + * {@link AbstractSubProtocolEvent} application context events to keep + * track of connected users and their subscriptions. * * @author Rossen Stoyanchev * @since 4.2 @@ -58,6 +58,11 @@ public class DefaultSimpUserRegistry implements SimpUserRegistry, SmartApplicati private final Object sessionLock = new Object(); + /** + * Specify the order value for this registry. + *
Default is {@link Ordered#LOWEST_PRECEDENCE}. + * @since 5.0.8 + */ public void setOrder(int order) { this.order = order; }