You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2005/03/10 04:23:20 UTC
cvs commit: ws-axis/java/src/org/apache/axis/message NodeImpl.java
dims 2005/03/09 19:23:20
Modified: java/src/org/apache/axis/message NodeImpl.java
Log:
Fix for AXIS-1862 - Significant performance problem with NodeImpl.getOwnerDocument
from Michael Thome (mthome@bbn.com)
Revision Changes Path
1.12 +2 -7 ws-axis/java/src/org/apache/axis/message/NodeImpl.java
Index: NodeImpl.java
===================================================================
RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/message/NodeImpl.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- NodeImpl.java 14 Dec 2004 12:58:56 -0000 1.11
+++ NodeImpl.java 10 Mar 2005 03:23:20 -0000 1.12
@@ -301,13 +301,8 @@
public Document getOwnerDocument() {
if(document == null) {
NodeImpl node = getParent();
- while(node != null) {
- Document doc = node.getOwnerDocument();
- if (doc == null) {
- node = node.getParent();
- } else {
- return doc;
- }
+ if (node != null) {
+ return node.getOwnerDocument();
}
}
return document;