HttpResponseStatus.valueOf shoud not be final so that derived protocols can have the factory method with the same name

This commit is contained in:
Trustin Lee 2010-01-25 04:07:47 +00:00
parent d216e321c8
commit 2dde1e9bac

View File

@ -284,7 +284,7 @@ public class HttpResponseStatus implements Comparable<HttpResponseStatus> {
* If the specified code is a standard HTTP status code, a cached instance
* will be returned. Otherwise, a new instance will be returned.
*/
public static final HttpResponseStatus valueOf(int code) {
public static HttpResponseStatus valueOf(int code) {
switch (code) {
case 100:
return CONTINUE;