- From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 24 Feb 2009 22:22:09 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/util In directory hutz:/tmp/cvs-serv6449/org/w3c/css/util Modified Files: Messages.java Utf8Properties.java Log Message: lint:unchecked Index: Utf8Properties.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/util/Utf8Properties.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- Utf8Properties.java 22 Feb 2009 15:16:18 -0000 1.3 +++ Utf8Properties.java 24 Feb 2009 22:22:07 -0000 1.4 @@ -24,7 +24,7 @@ * * @see java.util.Properties */ -public class Utf8Properties extends Properties { +public class Utf8Properties<K,V> extends Properties { /** * use serialVersionUID from JDK 1.1.X for interoperability Index: Messages.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/util/Messages.java,v retrieving revision 1.27 retrieving revision 1.28 diff -u -d -r1.27 -r1.28 --- Messages.java 24 Feb 2009 21:53:05 -0000 1.27 +++ Messages.java 24 Feb 2009 22:22:07 -0000 1.28 @@ -23,9 +23,9 @@ /** * Message properties */ - public Utf8Properties properties; + public Utf8Properties<String,String> properties; - public static Hashtable<String, Utf8Properties> languages = new Hashtable<String, Utf8Properties>(); + public static Hashtable<String, Utf8Properties<String,String>> languages = new Hashtable<String, Utf8Properties<String,String>>(); public static ArrayList<String> languages_name = new ArrayList<String>(); /** @@ -68,7 +68,7 @@ } for (int i = 0; i < maxTok; i++) { String l = slang[i]; - properties = (Utf8Properties) languages.get(l); + properties = languages.get(l); if (properties != null) { break; } @@ -76,7 +76,7 @@ if (minusIndex != -1) { // suppressed -cn in zh-cn (example) l = l.substring(0, minusIndex); - properties = (Utf8Properties) languages.get(l); + properties = languages.get(l); } if (properties != null) { break; @@ -84,7 +84,7 @@ } } if (properties == null) { - properties = (Utf8Properties) languages.get("en"); + properties = languages.get("en"); } } @@ -179,11 +179,11 @@ } static { - Utf8Properties tmp; + Utf8Properties<String,String> tmp; try { java.io.InputStream f = Messages.class.getResourceAsStream("Messages.properties.de"); try { - tmp = new Utf8Properties(); + tmp = new Utf8Properties<String,String>(); tmp.load(f); languages_name.add("de"); languages.put("de", tmp); @@ -203,7 +203,7 @@ try { java.io.InputStream f = Messages.class.getResourceAsStream("Messages.properties.en"); try { - tmp = new Utf8Properties(); + tmp = new Utf8Properties<String,String>(); tmp.load(f); languages_name.add("en"); languages.put("en", tmp); @@ -220,7 +220,7 @@ try { java.io.InputStream f = Messages.class.getResourceAsStream("Messages.properties.es"); try { - tmp = new Utf8Properties(); + tmp = new Utf8Properties<String,String>(); tmp.load(f); languages_name.add("es"); languages.put("es", tmp); @@ -238,7 +238,7 @@ try { java.io.InputStream f = Messages.class.getResourceAsStream("Messages.properties.fr"); try { - tmp = new Utf8Properties(); + tmp = new Utf8Properties<String,String>(); tmp.load(f); languages_name.add("fr"); languages.put("fr", tmp); @@ -256,7 +256,7 @@ try { java.io.InputStream f = Messages.class.getResourceAsStream("Messages.properties.ko"); try { - tmp = new Utf8Properties(); + tmp = new Utf8Properties<String,String>(); tmp.load(f); languages_name.add("ko"); languages.put("ko", tmp); @@ -273,7 +273,7 @@ try { java.io.InputStream f = Messages.class.getResourceAsStream("Messages.properties.it"); try { - tmp = new Utf8Properties(); + tmp = new Utf8Properties<String,String>(); tmp.load(f); languages_name.add("it"); languages.put("it", tmp); @@ -290,7 +290,7 @@ try { java.io.InputStream f = Messages.class.getResourceAsStream("Messages.properties.nl"); try { - tmp = new Utf8Properties(); + tmp = new Utf8Properties<String,String>(); tmp.load(f); languages_name.add("nl"); languages.put("nl", tmp); @@ -307,7 +307,7 @@ try { java.io.InputStream f = Messages.class.getResourceAsStream("Messages.properties.ja"); try { - tmp = new Utf8Properties(); + tmp = new Utf8Properties<String,String>(); tmp.load(f); languages_name.add("ja"); languages.put("ja", tmp); @@ -324,7 +324,7 @@ try { java.io.InputStream f = Messages.class.getResourceAsStream("Messages.properties.pl-PL"); try { - tmp = new Utf8Properties(); + tmp = new Utf8Properties<String,String>(); tmp.load(f); languages_name.add("pl-PL"); languages.put("pl", tmp); @@ -343,7 +343,7 @@ try { java.io.InputStream f = Messages.class.getResourceAsStream("Messages.properties.pt-BR"); try { - tmp = new Utf8Properties(); + tmp = new Utf8Properties<String,String>(); tmp.load(f); languages_name.add("pt-BR"); languages.put("pt-br", tmp); @@ -361,7 +361,7 @@ try { java.io.InputStream f = Messages.class.getResourceAsStream("Messages.properties.ru"); try { - tmp = new Utf8Properties(); + tmp = new Utf8Properties<String,String>(); tmp.load(f); languages_name.add("ru"); languages.put("ru", tmp); @@ -377,7 +377,7 @@ try { java.io.InputStream f = Messages.class.getResourceAsStream("Messages.properties.sv"); try { - tmp = new Utf8Properties(); + tmp = new Utf8Properties<String,String>(); tmp.load(f); languages_name.add("sv"); languages.put("sv", tmp); @@ -394,7 +394,7 @@ try { java.io.InputStream f = Messages.class.getResourceAsStream("Messages.properties.zh-cn"); try { - tmp = new Utf8Properties(); + tmp = new Utf8Properties<String,String>(); tmp.load(f); languages_name.add("zh-cn"); languages.put("zh-cn", tmp);
Received on Tuesday, 24 February 2009 22:22:19 UTC