提交 e2e4cbe6 编写于 作者: P Phillip Webb

Deprecate HttpStatus.MOVED_TEMPORARILY

Deprecate HttpStatus.MOVED_TEMPORARILY in favor of HttpStatus.FOUND
since HttpStatus.valueOf(302) will always return FOUND.

The name of the 302 status code was changed between HTTP 1.0 and
HTTP 1.1 but the underlying meaning remains the same.

Issue: SPR-10300
上级 720714b4
/* /*
* Copyright 2002-2012 the original author or authors. * Copyright 2002-2013 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -125,7 +125,9 @@ public enum HttpStatus { ...@@ -125,7 +125,9 @@ public enum HttpStatus {
/** /**
* {@code 302 Moved Temporarily}. * {@code 302 Moved Temporarily}.
* @see <a href="http://tools.ietf.org/html/rfc1945#section-9.3">HTTP/1.0</a> * @see <a href="http://tools.ietf.org/html/rfc1945#section-9.3">HTTP/1.0</a>
* @deprecated In favor of {@link #FOUND} which will be returned from {@code HttpStatus.valueOf(302)}
*/ */
@Deprecated
MOVED_TEMPORARILY(302, "Moved Temporarily"), MOVED_TEMPORARILY(302, "Moved Temporarily"),
/** /**
* {@code 303 See Other}. * {@code 303 See Other}.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册