File tree 1 file changed +4
-5
lines changed
spring-web/src/main/java/org/springframework/http
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2018 the original author or authors.
2
+ * Copyright 2002-2021 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -57,14 +57,13 @@ public static HttpMethod resolve(@Nullable String method) {
57
57
58
58
59
59
/**
60
- * Determine whether this {@code HttpMethod} matches the given
61
- * method value.
62
- * @param method the method value as a String
60
+ * Determine whether this {@code HttpMethod} matches the given method value.
61
+ * @param method the HTTP method as a String
63
62
* @return {@code true} if it matches, {@code false} otherwise
64
63
* @since 4.2.4
65
64
*/
66
65
public boolean matches (String method ) {
67
- return ( this == resolve (method ) );
66
+ return name (). equals (method );
68
67
}
69
68
70
69
}
You can’t perform that action at this time.
0 commit comments