From: markt Date: Sat, 14 Nov 2009 13:46:43 +0000 (+0000) Subject: Reduce visibility (thanks Sebb) X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=4a0d118529d0e419387c0d8dbbe7a45aa6a14f1a;p=tomcat7.0 Reduce visibility (thanks Sebb) Remove unused code git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@836177 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/tomcat/util/http/CookieSupport.java b/java/org/apache/tomcat/util/http/CookieSupport.java index 23251721a..e6e57985b 100644 --- a/java/org/apache/tomcat/util/http/CookieSupport.java +++ b/java/org/apache/tomcat/util/http/CookieSupport.java @@ -65,16 +65,16 @@ public final class CookieSupport { * spec, these are comma, semi-colon and white-space. The HTTP spec * definition of linear white space is [CRLF] 1*( SP | HT ) */ - public static final char[] V0_SEPARATORS = {',', ';', ' ', '\t'}; - public static final boolean[] V0_SEPARATOR_FLAGS = new boolean[128]; + private static final char[] V0_SEPARATORS = {',', ';', ' ', '\t'}; + private static final boolean[] V0_SEPARATOR_FLAGS = new boolean[128]; /** * The list of separators that apply to version 1 cookies. This may or may * not include '/' depending on the setting of * {@link #FWD_SLASH_IS_SEPARATOR}. */ - public static final char[] HTTP_SEPARATORS; - public static final boolean[] HTTP_SEPARATOR_FLAGS = new boolean[128]; + private static final char[] HTTP_SEPARATORS; + private static final boolean[] HTTP_SEPARATOR_FLAGS = new boolean[128]; static { STRICT_SERVLET_COMPLIANCE = Boolean.valueOf(System.getProperty( @@ -208,20 +208,6 @@ public final class CookieSupport { return false; } - public static boolean containsCTL(String value) { - if (value==null) return false; - int len = value.length(); - for (int i = 0; i < len; i++) { - char c = value.charAt(i); - if (c < 0x20 || c >= 0x7f) { - if (c == 0x09) - continue; //allow horizontal tabs - return true; - } - } - return false; - } - public static boolean alreadyQuoted (String value) { if (value==null || value.length() < 2) return false; return (value.charAt(0)=='\"' && value.charAt(value.length()-1)=='\"');