Fixed a findbugs warning
This commit is contained in:
parent
878eda0d26
commit
afe9c3c577
@ -36,12 +36,12 @@ import java.util.regex.Pattern;
|
|||||||
*/
|
*/
|
||||||
public class HttpVersion implements Comparable<HttpVersion> {
|
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 =
|
private static final Pattern VERSION_PATTERN =
|
||||||
Pattern.compile("(\\S+)/(\\d+)\\.(\\d+)");
|
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) {
|
public static HttpVersion valueOf(String value) {
|
||||||
value = value.toUpperCase();
|
value = value.toUpperCase();
|
||||||
if (value.equals("HTTP/1.1")) {
|
if (value.equals("HTTP/1.1")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user