Skip to content

Commit df291a3

Browse files
authored
Fix Javadoc link in DefaultCorsProcessor
Closes gh-24921
1 parent 1658223 commit df291a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spring-web/src/main/java/org/springframework/web/cors/DefaultCorsProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ protected String checkOrigin(CorsConfiguration config, @Nullable String requestO
177177
/**
178178
* Check the HTTP method and determine the methods for the response of a
179179
* pre-flight request. The default implementation simply delegates to
180-
* {@link org.springframework.web.cors.CorsConfiguration#checkOrigin(String)}.
180+
* {@link org.springframework.web.cors.CorsConfiguration#checkHttpMethod(HttpMethod)}.
181181
*/
182182
@Nullable
183183
protected List<HttpMethod> checkMethods(CorsConfiguration config, @Nullable HttpMethod requestMethod) {

spring-web/src/main/java/org/springframework/web/cors/reactive/DefaultCorsProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ protected String checkOrigin(CorsConfiguration config, @Nullable String requestO
175175
/**
176176
* Check the HTTP method and determine the methods for the response of a
177177
* pre-flight request. The default implementation simply delegates to
178-
* {@link CorsConfiguration#checkOrigin(String)}.
178+
* {@link CorsConfiguration#checkHttpMethod(HttpMethod)}.
179179
*/
180180
@Nullable
181181
protected List<HttpMethod> checkMethods(CorsConfiguration config, @Nullable HttpMethod requestMethod) {

0 commit comments

Comments
 (0)