# HG changeset patch # User joehw # Date 1531422382 25200 # Node ID 69634e97740c9c5f79bcab2c983673f5714064bc # Parent 215d1a5b097a9eeb8398c60e2a73e175f6f091e7 8194680: StartElement#getAttributes and getNamespaces refer to incorrect package Reviewed-by: jjg, lancea diff -r 215d1a5b097a -r 69634e97740c src/java.xml/share/classes/javax/xml/stream/events/StartElement.java --- a/src/java.xml/share/classes/javax/xml/stream/events/StartElement.java Thu Jul 12 11:32:14 2018 -0700 +++ b/src/java.xml/share/classes/javax/xml/stream/events/StartElement.java Thu Jul 12 12:06:22 2018 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2009, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -47,11 +47,11 @@ public QName getName(); /** - * Returns an Iterator of non-namespace declared attributes declared on - * this START_ELEMENT, - * returns an empty iterator if there are no attributes. The - * iterator must contain only implementations of the javax.xml.stream.Attribute - * interface. Attributes are fundamentally unordered and may not be reported + * Returns an Iterator of non-namespace attributes declared on this START_ELEMENT. + * Returns an empty iterator if there are no attributes. + * The iterator must contain only implementations of the + * {@link Attribute} interface. + * Attributes are fundamentally unordered and may be reported * in any order. * * @return a readonly Iterator over Attribute interfaces, or an @@ -68,9 +68,9 @@ * current context of namespace declarations. * *

The iterator must contain only implementations of the - * javax.xml.stream.Namespace interface. + * {@link Namespace} interface. * - *

A Namespace isA Attribute. One + *

A {@link Namespace} is an {@link Attribute}. One * can iterate over a list of namespaces as a list of attributes. * However this method returns only the list of namespaces * declared on this START_ELEMENT and does not @@ -85,8 +85,8 @@ public Iterator getNamespaces(); /** - * Returns the attribute referred to by this name - * @param name the qname of the desired name + * Returns the attribute referred to by the qname. + * @param name the qname of the desired attribute * @return the attribute corresponding to the name value or null */ public Attribute getAttributeByName(QName name);