WW-2183 XSLT result type is extremely slow for actions that produce a large xml document

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/branches/STRUTS_2_0_X@575840 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Holmes
2007-09-15 01:05:16 +00:00
parent 48c056c3ec
commit 155b9120cf
@@ -131,8 +131,10 @@ public abstract class AbstractAdapterNode implements AdapterNode {
public Node getChildBeforeOrAfter(Node child, boolean before) {
log.debug("getChildBeforeOrAfter: ");
List adapters = getChildAdapters();
log.debug("childAdapters = " + adapters);
log.debug("child = " + child);
if (log.isDebugEnabled()) {
log.debug("childAdapters = " + adapters);
log.debug("child = " + child);
}
int index = adapters.indexOf(child);
if (index < 0)
throw new StrutsException(child + " is no child of " + this);
@@ -251,7 +253,7 @@ public abstract class AbstractAdapterNode implements AdapterNode {
+ ((next == null) ? "null" : next.getNodeName()));
}
return getParent().getChildAfter(this);
return next;
}
public Node getPreviousSibling() {