mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user