From 89888f9f230c98bde926e849d5e42ed92da10c0d Mon Sep 17 00:00:00 2001 From: tkellner Date: Fri, 2 Sep 2011 16:01:17 +0000 Subject: Housekeeping * Generic types parameterized * SupressWarnings annotations added where parameterization impossible * Unused members commented out * SerialVersionUID added/removed where necessary * Superfluous imports removed * Other small changed to get rid of some compiler/validator warnings git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@976 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../gv/egiz/org/apache/tomcat/util/http/AcceptLanguage.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'utils') diff --git a/utils/src/main/java/at/gv/egiz/org/apache/tomcat/util/http/AcceptLanguage.java b/utils/src/main/java/at/gv/egiz/org/apache/tomcat/util/http/AcceptLanguage.java index 9cf8a003..d39ce675 100644 --- a/utils/src/main/java/at/gv/egiz/org/apache/tomcat/util/http/AcceptLanguage.java +++ b/utils/src/main/java/at/gv/egiz/org/apache/tomcat/util/http/AcceptLanguage.java @@ -60,7 +60,7 @@ public class AcceptLanguage { return (Locale)l.elementAt(0); } - public static Enumeration getLocales(String acceptLanguage) { + public static Enumeration getLocales(String acceptLanguage) { // Short circuit with an empty enumeration if null header if (acceptLanguage == null) { Vector v = new Vector(); @@ -132,15 +132,15 @@ public class AcceptLanguage { } } - private static void extractLocales(Hashtable languages, Vector q, + private static void extractLocales(Hashtable> languages, Vector q, Vector l) { // XXX We will need to order by q value Vector in the Future ? - Enumeration e = q.elements(); + Enumeration e = q.elements(); while (e.hasMoreElements()) { - Vector v = - (Vector)languages.get(((Double)e.nextElement()).toString()); - Enumeration le = v.elements(); + Vector v = + (Vector)languages.get(((Double)e.nextElement()).toString()); + Enumeration le = v.elements(); while (le.hasMoreElements()) { String language = (String)le.nextElement(); String country = ""; -- cgit v1.2.3