src/share/classes/javax/swing/text/html/MuxingAttributeSet.java
Print this page
*** 211,221 ****
* Gets the names of all attributes.
*
* @return the attribute names
* @see AttributeSet#getAttributeNames
*/
! public Enumeration getAttributeNames() {
return new MuxingAttributeNameEnumeration();
}
/**
* Checks whether a given attribute name/value is defined.
--- 211,221 ----
* Gets the names of all attributes.
*
* @return the attribute names
* @see AttributeSet#getAttributeNames
*/
! public Enumeration<?> getAttributeNames() {
return new MuxingAttributeNameEnumeration();
}
/**
* Checks whether a given attribute name/value is defined.
*** 238,248 ****
* @see AttributeSet#containsAttributes
*/
public boolean containsAttributes(AttributeSet attrs) {
boolean result = true;
! Enumeration names = attrs.getAttributeNames();
while (result && names.hasMoreElements()) {
Object name = names.nextElement();
result = attrs.getAttribute(name).equals(getAttribute(name));
}
--- 238,248 ----
* @see AttributeSet#containsAttributes
*/
public boolean containsAttributes(AttributeSet attrs) {
boolean result = true;
! Enumeration<?> names = attrs.getAttributeNames();
while (result && names.hasMoreElements()) {
Object name = names.nextElement();
result = attrs.getAttribute(name).equals(getAttribute(name));
}
*** 266,276 ****
/**
* An Enumeration of the Attribute names in a MuxingAttributeSet.
* This may return the same name more than once.
*/
! private class MuxingAttributeNameEnumeration implements Enumeration {
MuxingAttributeNameEnumeration() {
updateEnum();
}
--- 266,276 ----
/**
* An Enumeration of the Attribute names in a MuxingAttributeSet.
* This may return the same name more than once.
*/
! private class MuxingAttributeNameEnumeration implements Enumeration<Object> {
MuxingAttributeNameEnumeration() {
updateEnum();
}
*** 305,312 ****
/** Index into attrs the current Enumeration came from. */
private int attrIndex;
/** Enumeration from attrs. */
! private Enumeration currentEnum;
}
}
--- 305,312 ----
/** Index into attrs the current Enumeration came from. */
private int attrIndex;
/** Enumeration from attrs. */
! private Enumeration<?> currentEnum;
}
}