src/java.desktop/share/classes/javax/swing/text/html/HTMLEditorKit.java
Print this page
*** 985,995 ****
/**
* Interface to be supported by the parser. This enables
* providing a different parser while reusing some of the
* implementation provided by this editor kit.
*/
! public static abstract class Parser {
/**
* Parse the given stream and drive the given callback
* with the results of the parse. This method should
* be implemented to be thread-safe.
*
--- 985,995 ----
/**
* Interface to be supported by the parser. This enables
* providing a different parser while reusing some of the
* implementation provided by this editor kit.
*/
! public abstract static class Parser {
/**
* Parse the given stream and drive the given callback
* with the results of the parse. This method should
* be implemented to be thread-safe.
*
*** 1562,1572 ****
* <p>NOTE: None of the convenience methods obtain a lock on the
* document. If you have another thread modifying the text these
* methods may have inconsistent behavior, or return the wrong thing.
*/
@SuppressWarnings("serial") // Superclass is not serializable across versions
! public static abstract class HTMLTextAction extends StyledTextAction {
/**
* Creates a new HTMLTextAction from a string action name.
*
* @param name the name of the action
--- 1562,1572 ----
* <p>NOTE: None of the convenience methods obtain a lock on the
* document. If you have another thread modifying the text these
* methods may have inconsistent behavior, or return the wrong thing.
*/
@SuppressWarnings("serial") // Superclass is not serializable across versions
! public abstract static class HTMLTextAction extends StyledTextAction {
/**
* Creates a new HTMLTextAction from a string action name.
*
* @param name the name of the action
*** 2007,2017 ****
}
/*
* Returns the object in an AttributeSet matching a key
*/
! static private Object getAttrValue(AttributeSet attr, HTML.Attribute key) {
Enumeration<?> names = attr.getAttributeNames();
while (names.hasMoreElements()) {
Object nextKey = names.nextElement();
Object nextVal = attr.getAttribute(nextKey);
if (nextVal instanceof AttributeSet) {
--- 2007,2017 ----
}
/*
* Returns the object in an AttributeSet matching a key
*/
! private static Object getAttrValue(AttributeSet attr, HTML.Attribute key) {
Enumeration<?> names = attr.getAttributeNames();
while (names.hasMoreElements()) {
Object nextKey = names.nextElement();
Object nextVal = attr.getAttribute(nextKey);
if (nextVal instanceof AttributeSet) {