Fixed a findbugs warning

This commit is contained in:
Trustin Lee 2008-12-08 23:58:46 +00:00
parent 878eda0d26
commit afe9c3c577

View File

@ -36,12 +36,12 @@ import java.util.regex.Pattern;
*/
public class HttpVersion implements Comparable<HttpVersion> {
public static final HttpVersion HTTP_1_0 = new HttpVersion("HTTP", 1, 0);
public static final HttpVersion HTTP_1_1 = new HttpVersion("HTTP", 1, 1);
private static final Pattern VERSION_PATTERN =
Pattern.compile("(\\S+)/(\\d+)\\.(\\d+)");
public static final HttpVersion HTTP_1_0 = new HttpVersion("HTTP", 1, 0);
public static final HttpVersion HTTP_1_1 = new HttpVersion("HTTP", 1, 1);
public static HttpVersion valueOf(String value) {
value = value.toUpperCase();
if (value.equals("HTTP/1.1")) {