- From: CVS User ylafon <cvsmail@w3.org>
- Date: Wed, 09 Jan 2013 21:53:27 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css3 In directory roscoe:/tmp/cvs-serv1904/css3 Modified Files: CssVoiceFamily.java Log Message: ArrayList -> array --- /sources/public/2002/css-validator/org/w3c/css/properties/css3/CssVoiceFamily.java 2013/01/09 09:29:07 1.2 +++ /sources/public/2002/css-validator/org/w3c/css/properties/css3/CssVoiceFamily.java 2013/01/09 21:53:27 1.3 @@ -1,4 +1,4 @@ -// $Id: CssVoiceFamily.java,v 1.2 2013/01/09 09:29:07 ylafon Exp $ +// $Id: CssVoiceFamily.java,v 1.3 2013/01/09 21:53:27 ylafon Exp $ // Author: Yves Lafon <ylafon@w3.org> // // (c) COPYRIGHT MIT, ERCIM and Keio University, 2013. @@ -25,22 +25,24 @@ */ public class CssVoiceFamily extends org.w3c.css.properties.css.CssVoiceFamily { - public static final ArrayList<CssIdent> genericVoices, age; + public static final CssIdent[] genericVoices, age; public static final CssIdent preserve; static { preserve = CssIdent.getIdent("preserve"); String[] _genericVoices = {"male", "female", "neutral"}; - genericVoices = new ArrayList<CssIdent>(_genericVoices.length); + genericVoices = new CssIdent[_genericVoices.length]; + int i = 0; for (String s : _genericVoices) { - genericVoices.add(CssIdent.getIdent(s)); + genericVoices[i++] = CssIdent.getIdent(s); } String[] _age = {"child", "young", "old"}; - age = new ArrayList<CssIdent>(_age.length); + age = new CssIdent[_age.length]; + i = 0; for (String s : _age) { - age.add(CssIdent.getIdent(s)); + age[i++] = CssIdent.getIdent(s); } }
Received on Wednesday, 9 January 2013 21:53:27 UTC