You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2008/12/30 19:24:05 UTC
svn commit: r730208 -
/xerces/java/trunk/src/org/apache/xerces/dom/ElementImpl.java
Author: mrglavas
Date: Tue Dec 30 10:24:05 2008
New Revision: 730208
URL: http://svn.apache.org/viewvc?rev=730208&view=rev
Log:
Making ElementTraversal implementation methods final plus some other minor tweaks.
Modified:
xerces/java/trunk/src/org/apache/xerces/dom/ElementImpl.java
Modified: xerces/java/trunk/src/org/apache/xerces/dom/ElementImpl.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/dom/ElementImpl.java?rev=730208&r1=730207&r2=730208&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/dom/ElementImpl.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/dom/ElementImpl.java Tue Dec 30 10:24:05 2008
@@ -1177,7 +1177,7 @@
* @see <a href="http://www.w3.org/TR/2008/REC-ElementTraversal-20081222/#attribute-childElementCount">
* Element Traversal Specification</a>
*/
- public int getChildElementCount() {
+ public final int getChildElementCount() {
int count = 0;
Element child = getFirstElementChild();
while (child != null) {
@@ -1191,16 +1191,16 @@
* @see <a href="http://www.w3.org/TR/2008/REC-ElementTraversal-20081222/#attribute-firstElementChild">
* Element Traversal Specification</a>
*/
- public Element getFirstElementChild() {
+ public final Element getFirstElementChild() {
Node n = getFirstChild();
while (n != null) {
switch (n.getNodeType()) {
case Node.ELEMENT_NODE:
return (Element) n;
case Node.ENTITY_REFERENCE_NODE:
- Element _e = getFirstElementChild(n);
- if (_e != null) {
- return _e;
+ final Element e = getFirstElementChild(n);
+ if (e != null) {
+ return e;
}
break;
}
@@ -1213,16 +1213,16 @@
* @see <a href="http://www.w3.org/TR/2008/REC-ElementTraversal-20081222/#attribute-lastElementChild">
* Element Traversal Specification</a>
*/
- public Element getLastElementChild() {
+ public final Element getLastElementChild() {
Node n = getLastChild();
while (n != null) {
switch (n.getNodeType()) {
case Node.ELEMENT_NODE:
return (Element) n;
case Node.ENTITY_REFERENCE_NODE:
- Element _e = getLastElementChild(n);
- if (_e != null) {
- return _e;
+ final Element e = getLastElementChild(n);
+ if (e != null) {
+ return e;
}
break;
}
@@ -1235,16 +1235,16 @@
* @see <a href="http://www.w3.org/TR/2008/REC-ElementTraversal-20081222/#attribute-nextElementSibling">
* Element Traversal Specification</a>
*/
- public Element getNextElementSibling() {
+ public final Element getNextElementSibling() {
Node n = getNextSibling();
while (n != null) {
switch (n.getNodeType()) {
case Node.ELEMENT_NODE:
return (Element) n;
case Node.ENTITY_REFERENCE_NODE:
- Element _e = getFirstElementChild(n);
- if (_e != null) {
- return _e;
+ final Element e = getFirstElementChild(n);
+ if (e != null) {
+ return e;
}
break;
}
@@ -1271,16 +1271,16 @@
* @see <a href="http://www.w3.org/TR/2008/REC-ElementTraversal-20081222/#attribute-previousElementSibling">
* Element Traversal Specification</a>
*/
- public Element getPreviousElementSibling() {
+ public final Element getPreviousElementSibling() {
Node n = getPreviousSibling();
while (n != null) {
switch (n.getNodeType()) {
case Node.ELEMENT_NODE:
return (Element) n;
case Node.ENTITY_REFERENCE_NODE:
- Element _e = getLastElementChild(n);
- if (_e != null) {
- return _e;
+ final Element e = getLastElementChild(n);
+ if (e != null) {
+ return e;
}
break;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org