Skip to content

Commit 5489d56

Browse files
committed
Update @see links for HttpMethods to reference RFC 9110
Replaced outdated references to HTTP 1.1 section links (RFC 2616) with updated references to RFC 9110. The original document has been superseded.
1 parent 69ef885 commit 5489d56

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

spring-web/src/main/java/org/springframework/http/HttpMethod.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,25 +37,25 @@ public final class HttpMethod implements Comparable<HttpMethod>, Serializable {
3737

3838
/**
3939
* The HTTP method {@code GET}.
40-
* @see <a href="https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.3">HTTP 1.1, section 9.3</a>
40+
* @see <a href="https://www.rfc-editor.org/rfc/rfc9110.html#section-9.3.1">RFC 9110, section 9.3.1</a>
4141
*/
4242
public static final HttpMethod GET = new HttpMethod("GET");
4343

4444
/**
4545
* The HTTP method {@code HEAD}.
46-
* @see <a href="https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.4">HTTP 1.1, section 9.4</a>
46+
* @see <a href="https://www.rfc-editor.org/rfc/rfc9110.html#section-9.3.2">RFC 9110, section 9.3.2</a>
4747
*/
4848
public static final HttpMethod HEAD = new HttpMethod("HEAD");
4949

5050
/**
5151
* The HTTP method {@code POST}.
52-
* @see <a href="https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.5">HTTP 1.1, section 9.5</a>
52+
* @see <a href="https://www.rfc-editor.org/rfc/rfc9110.html#section-9.3.3">RFC 9110, section 9.3.3</a>
5353
*/
5454
public static final HttpMethod POST = new HttpMethod("POST");
5555

5656
/**
5757
* The HTTP method {@code PUT}.
58-
* @see <a href="https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.6">HTTP 1.1, section 9.6</a>
58+
* @see <a href="https://www.rfc-editor.org/rfc/rfc9110.html#section-9.3.4">RFC 9110, section 9.3.4</a>
5959
*/
6060
public static final HttpMethod PUT = new HttpMethod("PUT");
6161

@@ -67,19 +67,19 @@ public final class HttpMethod implements Comparable<HttpMethod>, Serializable {
6767

6868
/**
6969
* The HTTP method {@code DELETE}.
70-
* @see <a href="https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.7">HTTP 1.1, section 9.7</a>
70+
* @see <a href="https://www.rfc-editor.org/rfc/rfc9110.html#section-9.3.5">RFC 9110, section 9.3.5</a>
7171
*/
7272
public static final HttpMethod DELETE = new HttpMethod("DELETE");
7373

7474
/**
7575
* The HTTP method {@code OPTIONS}.
76-
* @see <a href="https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.2">HTTP 1.1, section 9.2</a>
76+
* @see <a href="https://www.rfc-editor.org/rfc/rfc9110.html#section-9.3.7">RFC 9110, section 9.3.7</a>
7777
*/
7878
public static final HttpMethod OPTIONS = new HttpMethod("OPTIONS");
7979

8080
/**
8181
* The HTTP method {@code TRACE}.
82-
* @see <a href="https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.8">HTTP 1.1, section 9.8</a>
82+
* @see <a href="https://www.rfc-editor.org/rfc/rfc9110.html#section-9.3.8">RFC 9110, section 9.3.8</a>
8383
*/
8484
public static final HttpMethod TRACE = new HttpMethod("TRACE");
8585

0 commit comments

Comments
 (0)