You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by ve...@apache.org on 2012/12/30 17:15:15 UTC
svn commit: r1426960 -
/webservices/commons/trunk/modules/axiom/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/SwitchingWrapper.java
Author: veithen
Date: Sun Dec 30 16:15:15 2012
New Revision: 1426960
URL: http://svn.apache.org/viewvc?rev=1426960&view=rev
Log:
Removed hack that seams to be no longer necessary.
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/SwitchingWrapper.java
Modified: webservices/commons/trunk/modules/axiom/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/SwitchingWrapper.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/SwitchingWrapper.java?rev=1426960&r1=1426959&r2=1426960&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/SwitchingWrapper.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/SwitchingWrapper.java Sun Dec 30 16:15:15 2012
@@ -179,19 +179,6 @@ class SwitchingWrapper extends AbstractX
// initiate the next and current nodes
// Note - navigator is written in such a way that it first
// returns the starting node at the first call to it
- // Note - for OMSourcedElements, temporarily set caching
- // to get the initial navigator nodes
- boolean resetCache = false;
- try {
- if (startNode instanceof OMSourcedElement &&
- !cache && builder != null) {
- if (!builder.isCache()) {
- resetCache = true;
- }
- builder.setCache(true); // bootstrap the navigator
-
- }
- } catch(Throwable t) {}
currentNode = navigator.getNext();
updateNextNode(!cache);
@@ -205,10 +192,6 @@ class SwitchingWrapper extends AbstractX
} else {
currentEvent = START_DOCUMENT;
}
-
- if (resetCache) {
- builder.setCache(cache);
- }
}
/**