< prev index next >

src/java.desktop/share/classes/javax/swing/plaf/synth/SynthParser.java

Print this page

        

*** 204,214 **** _stylePainters = new ArrayList<ParsedSynthStyle.PainterInfo>(); _statePainters = new ArrayList<ParsedSynthStyle.PainterInfo>(); } /** ! * Parses a set of styles from <code>inputStream</code>, adding the * resulting styles to the passed in DefaultSynthStyleFactory. * Resources are resolved either from a URL or from a Class. When calling * this method, one of the URL or the Class must be null but not both at * the same time. * --- 204,214 ---- _stylePainters = new ArrayList<ParsedSynthStyle.PainterInfo>(); _statePainters = new ArrayList<ParsedSynthStyle.PainterInfo>(); } /** ! * Parses a set of styles from {@code inputStream}, adding the * resulting styles to the passed in DefaultSynthStyleFactory. * Resources are resolved either from a URL or from a Class. When calling * this method, one of the URL or the Class must be null but not both at * the same time. *
*** 317,327 **** } return _handler; } /** ! * If <code>value</code> is an instance of <code>type</code> it is * returned, otherwise a SAXException is thrown. */ private Object checkCast(Object value, Class<?> type) throws SAXException { if (!type.isInstance(value)) { throw new SAXException("Expected type " + type + " got " + --- 317,327 ---- } return _handler; } /** ! * If {@code value} is an instance of {@code type} it is * returned, otherwise a SAXException is thrown. */ private Object checkCast(Object value, Class<?> type) throws SAXException { if (!type.isInstance(value)) { throw new SAXException("Expected type " + type + " got " +
< prev index next >