zack 7 years ago
parent
commit
c102cfcb0b
  1. 6
      fine-cssparser/src/com/fr/third/steadystate/css/dom/DOMExceptionImpl.java
  2. 33
      fine-cssparser/src/com/fr/third/steadystate/css/parser/AbstractSACParser.java

6
fine-cssparser/src/com/fr/third/steadystate/css/dom/DOMExceptionImpl.java

@ -15,11 +15,11 @@
package com.fr.third.steadystate.css.dom; package com.fr.third.steadystate.css.dom;
import org.w3c.dom.DOMException;
import java.util.Locale; import java.util.Locale;
import java.util.ResourceBundle; import java.util.ResourceBundle;
import org.w3c.dom.DOMException;
/** /**
* Custom {@link DOMException} extension. * Custom {@link DOMException} extension.
* *
@ -54,7 +54,7 @@ public class DOMExceptionImpl extends DOMException {
private static ResourceBundle ExceptionResource_ = private static ResourceBundle ExceptionResource_ =
ResourceBundle.getBundle( ResourceBundle.getBundle(
"com.steadystate.css.parser.ExceptionResource", "com.fr.third.steadystate.css.parser.ExceptionResource",
Locale.getDefault()); Locale.getDefault());
public DOMExceptionImpl(final short code, final int messageKey) { public DOMExceptionImpl(final short code, final int messageKey) {

33
fine-cssparser/src/com/fr/third/steadystate/css/parser/AbstractSACParser.java

@ -15,16 +15,14 @@
package com.fr.third.steadystate.css.parser; package com.fr.third.steadystate.css.parser;
import java.io.IOException; import com.fr.third.steadystate.css.parser.selectors.ConditionFactoryImpl;
import java.io.InputStreamReader; import com.fr.third.steadystate.css.parser.selectors.SelectorFactoryImpl;
import java.net.URL; import com.fr.third.steadystate.css.sac.ConditionFactoryAdapter;
import java.nio.charset.Charset; import com.fr.third.steadystate.css.sac.ConditionFactoryExt;
import java.text.MessageFormat; import com.fr.third.steadystate.css.sac.DocumentHandlerAdapter;
import java.util.Locale; import com.fr.third.steadystate.css.sac.DocumentHandlerExt;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
import com.fr.third.steadystate.css.sac.SelectorFactoryAdapter; import com.fr.third.steadystate.css.sac.SelectorFactoryAdapter;
import com.fr.third.steadystate.css.sac.SelectorFactoryExt;
import org.w3c.css.sac.CSSParseException; import org.w3c.css.sac.CSSParseException;
import org.w3c.css.sac.ConditionFactory; import org.w3c.css.sac.ConditionFactory;
import org.w3c.css.sac.DocumentHandler; import org.w3c.css.sac.DocumentHandler;
@ -39,13 +37,14 @@ import org.w3c.css.sac.SelectorFactory;
import org.w3c.css.sac.SelectorList; import org.w3c.css.sac.SelectorList;
import org.w3c.dom.DOMException; import org.w3c.dom.DOMException;
import com.fr.third.steadystate.css.parser.selectors.ConditionFactoryImpl; import java.io.IOException;
import com.fr.third.steadystate.css.parser.selectors.SelectorFactoryImpl; import java.io.InputStreamReader;
import com.fr.third.steadystate.css.sac.ConditionFactoryAdapter; import java.net.URL;
import com.fr.third.steadystate.css.sac.ConditionFactoryExt; import java.nio.charset.Charset;
import com.fr.third.steadystate.css.sac.DocumentHandlerAdapter; import java.text.MessageFormat;
import com.fr.third.steadystate.css.sac.DocumentHandlerExt; import java.util.Locale;
import com.fr.third.steadystate.css.sac.SelectorFactoryExt; import java.util.MissingResourceException;
import java.util.ResourceBundle;
/** /**
* Base implementation of {@link Parser}. * Base implementation of {@link Parser}.
@ -155,7 +154,7 @@ abstract class AbstractSACParser implements SACParser {
if (sacParserMessages_ == null) { if (sacParserMessages_ == null) {
try { try {
sacParserMessages_ = ResourceBundle.getBundle( sacParserMessages_ = ResourceBundle.getBundle(
"com.steadystate.css.parser.SACParserMessages", "com.fr.third.steadystate.css.parser.SACParserMessages",
getLocale()); getLocale());
} }
catch (final MissingResourceException e) { catch (final MissingResourceException e) {

Loading…
Cancel
Save