From afe9c3c57795bcf001970182a5c7bb4a0b5feff8 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Mon, 8 Dec 2008 23:58:46 +0000 Subject: [PATCH] Fixed a findbugs warning --- .../org/jboss/netty/handler/codec/http/HttpVersion.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/jboss/netty/handler/codec/http/HttpVersion.java b/src/main/java/org/jboss/netty/handler/codec/http/HttpVersion.java index d6dd89c455..97c7042e23 100644 --- a/src/main/java/org/jboss/netty/handler/codec/http/HttpVersion.java +++ b/src/main/java/org/jboss/netty/handler/codec/http/HttpVersion.java @@ -36,12 +36,12 @@ import java.util.regex.Pattern; */ public class HttpVersion implements Comparable { + 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); - private static final Pattern VERSION_PATTERN = - Pattern.compile("(\\S+)/(\\d+)\\.(\\d+)"); - public static HttpVersion valueOf(String value) { value = value.toUpperCase(); if (value.equals("HTTP/1.1")) {