Skip to content

Commit 6a9783b

Browse files
committed
Merge branch '6.2.x'
2 parents b610711 + 7e9ac12 commit 6a9783b

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

Diff for: spring-websocket/src/main/java/org/springframework/web/socket/config/annotation/ServletWebSocketHandlerRegistry.java

+11-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -26,14 +26,12 @@
2626

2727
import org.springframework.scheduling.TaskScheduler;
2828
import org.springframework.util.MultiValueMap;
29-
import org.springframework.util.PathMatcher;
3029
import org.springframework.web.HttpRequestHandler;
3130
import org.springframework.web.servlet.handler.AbstractHandlerMapping;
3231
import org.springframework.web.servlet.handler.SimpleUrlHandlerMapping;
3332
import org.springframework.web.socket.WebSocketHandler;
3433
import org.springframework.web.socket.server.support.WebSocketHandlerMapping;
3534
import org.springframework.web.util.UrlPathHelper;
36-
import org.springframework.web.util.pattern.PathPatternParser;
3735

3836
/**
3937
* {@link WebSocketHandlerRegistry} with Spring MVC handler mappings for the
@@ -79,17 +77,21 @@ public int getOrder() {
7977
/**
8078
* Set the UrlPathHelper to configure on the {@code SimpleUrlHandlerMapping}
8179
* used to map handshake requests.
82-
* @deprecated use of {@link PathMatcher} and {@link UrlPathHelper} is deprecated
83-
* for use at runtime in web modules in favor of parsed patterns with
84-
* {@link PathPatternParser}.
80+
* @deprecated without a replacement since effectively the UrlPathHelper is
81+
* no longer used with {@code PathPatternParser} used by the default in
82+
* all extensions of {@code AbstractHandlerMapping}. To be removed in 7.0.
8583
*/
86-
@Deprecated(since = "7.0", forRemoval = true)
84+
@Deprecated(since = "6.2.4", forRemoval = true)
8785
public void setUrlPathHelper(@Nullable UrlPathHelper urlPathHelper) {
8886
this.urlPathHelper = urlPathHelper;
8987
}
9088

91-
@Deprecated(since = "7.0", forRemoval = true)
92-
public @Nullable UrlPathHelper getUrlPathHelper() {
89+
/**
90+
* Return the configured {@code UrlPathHelper}.
91+
* @deprecated without a replacement; see notice on {@link #setUrlPathHelper}
92+
*/
93+
@Deprecated(since = "6.2.4", forRemoval = true)
94+
public @Nullable UrlPathHelper getUrlPathHelper() {
9395
return this.urlPathHelper;
9496
}
9597

0 commit comments

Comments
 (0)