|
Here is a code review that is based on formatting only. The code itself
looks fine, but I need to review it more thoroughly. Also, you'll need to document this feature in the skinning.xml file. SkinCSSDocumentHandler: 1. Keep the imports: import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Set; This is convention. We don't use * in our imports 2. Check indentation, throughout the code you added, the indentation doesn't match the rest of the file. } else if (atRule.startsWith(_AT_LOCALE)) { _parseCustomAtRule(_AT_LOCALE, atRule); } 3. Check indentation: else if (_AT_LOCALE.equals(type)) _locales = null; else if (_AT_LOCALE.equals(type)) { _locales = new HashSet<Locale>(); for (int i = 0; i < typeArray.length; i++) { Locale locale = LocaleUtils .getLocaleForIANAString(typeArray[i].replace('_', '-').trim()); _locales.add(locale); } } 4. brackets '{' '}' need to be on their own line to fit the style we use in all the files 5. add parens around (locales != null) _locales = locales != null ? new HashSet<Locale>(locales) : new HashSet<Locale>(); 6. indentation public Set<Locale> getLocales() { return _locales; } SkinStyleSheetNode.java 1. java.util imports, do not use * 2. indentation and brackets on their own line: boolean localeMatch = _setsEqual(locales, _locales); if (localeMatch) { boolean accMatch = _setsEqual(accProperties, _accProperties); if (accMatch) return true; } SkinStyleSheetParserUtils.java 1. remove the comment that says locales are not supported. Marius Petoi wrote, On 12/9/2009 11:45 PM PT: Hi Jeanne, |
- [Trinidad][Skinning]Support @locale rules (TRINIDAD-10... Marius Petoi
- Re: [Trinidad][Skinning]Support @locale rules (TR... Jeanne Waldman
- Re: [Trinidad][Skinning]Support @locale rules... Marius Petoi
- Re: [Trinidad][Skinning]Support @locale r... Matthias Wessendorf
- Re: [Trinidad][Skinning]Support @locale r... Jeanne Waldman
- Re: [Trinidad][Skinning]Support @locale r... Jeanne Waldman
- Re: [Trinidad][Skinning]Support @loca... Blake Sullivan
- Re: [Trinidad][Skinning]Support ... Jeanne Waldman
