Workaround for a compiler bug (unsorted switch cases)

This commit is contained in:
Trustin Lee 2010-01-09 05:30:39 +00:00
parent a1d7a75ff4
commit 9c0e9e1780

View File

@ -218,10 +218,10 @@ public class CookieEncoder {
for (int i = 0; i < val.length(); i ++) {
char c = val.charAt(i);
switch (c) {
case '(': case ')': case '<': case '>': case '@': case ',':
case ';': case ':': case '"': case '/': case '[': case ']':
case '?': case '=': case '{': case '}': case ' ':
case '\t': case '\\':
case '\t': case ' ': case '"': case '(': case ')': case ',':
case '/': case ':': case ';': case '<': case '=': case '>':
case '?': case '@': case '[': case '\\': case ']':
case '{': case '}':
addQuoted(sb, name, val);
return;
}