ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1481486 - in /webservices/axiom/trunk/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/serializer: pull/SwitchingWrapper.java push/Serializer.java
Date Sun, 12 May 2013 08:04:32 GMT
Author: veithen
Date: Sun May 12 08:04:32 2013
New Revision: 1481486

URL: http://svn.apache.org/r1481486
Log:
Removed unnecessary calls to setCache. Caching is disabled by disableCaching.

Modified:
    webservices/axiom/trunk/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/serializer/pull/SwitchingWrapper.java
    webservices/axiom/trunk/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/serializer/push/Serializer.java

Modified: webservices/axiom/trunk/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/serializer/pull/SwitchingWrapper.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/serializer/pull/SwitchingWrapper.java?rev=1481486&r1=1481485&r2=1481486&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/serializer/pull/SwitchingWrapper.java
(original)
+++ webservices/axiom/trunk/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/serializer/pull/SwitchingWrapper.java
Sun May 12 08:04:32 2013
@@ -988,8 +988,6 @@ class SwitchingWrapper extends AbstractX
                     attributeCount = -1;
                     namespaceCount = -1;
                 } else {
-                    // Disable caching
-                    builder.setCache(false);
                     OMContainer container;
                     if (!(node instanceof OMContainer) || visited) {
                         container = ((OMNode)node).getParent();

Modified: webservices/axiom/trunk/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/serializer/push/Serializer.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/serializer/push/Serializer.java?rev=1481486&r1=1481485&r2=1481486&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/serializer/push/Serializer.java
(original)
+++ webservices/axiom/trunk/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/serializer/push/Serializer.java
Sun May 12 08:04:32 2013
@@ -284,7 +284,6 @@ public abstract class Serializer {
             // events from the underlying XMLStreamReader.
             if (!container.isComplete() && container.getBuilder() != null) {
                 StAXOMBuilder builder = (StAXOMBuilder)container.getBuilder();
-                builder.setCache(false);
                 XMLStreamReader reader = (XMLStreamReader)builder.disableCaching();
                 DataHandlerReader dataHandlerReader = XMLStreamReaderUtils.getDataHandlerReader(reader);
                 int depth = 0;



Mime
View raw message