ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1734178 - in /webservices/axiom/trunk: aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/common/builder/ axiom-api/src/main/java/org/apache/axiom/om/ axiom-compat/src/main/java/org/apache/axiom/soap/impl/builder/
Date Tue, 08 Mar 2016 23:19:30 GMT
Author: veithen
Date: Tue Mar  8 23:19:29 2016
New Revision: 1734178

URL: http://svn.apache.org/viewvc?rev=1734178&view=rev
Log:
Remove the setCache and isCache methods from OMXMLParserWrapper.

Modified:
    webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/common/builder/BuilderHandler.java
    webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/common/builder/PushBuilder.java
    webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/common/builder/StAXOMBuilder.java
    webservices/axiom/trunk/axiom-api/src/main/java/org/apache/axiom/om/OMXMLParserWrapper.java
    webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/soap/impl/builder/StAXSOAPModelBuilder.java

Modified: webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/common/builder/BuilderHandler.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/common/builder/BuilderHandler.java?rev=1734178&r1=1734177&r2=1734178&view=diff
==============================================================================
--- webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/common/builder/BuilderHandler.java
(original)
+++ webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/common/builder/BuilderHandler.java
Tue Mar  8 23:19:29 2016
@@ -42,8 +42,6 @@ public final class BuilderHandler implem
     private int activeContextCount;
     // returns the state of completion
     public boolean done;
-    // keeps the state of the cache
-    public boolean cache = true;
     public AxiomDocument document;
     
     /**

Modified: webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/common/builder/PushBuilder.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/common/builder/PushBuilder.java?rev=1734178&r1=1734177&r2=1734178&view=diff
==============================================================================
--- webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/common/builder/PushBuilder.java
(original)
+++ webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/common/builder/PushBuilder.java
Tue Mar  8 23:19:29 2016
@@ -46,14 +46,6 @@ public final class PushBuilder extends A
         return -1;
     }
 
-    public final void setCache(boolean b) throws OMException {
-        throw new UnsupportedOperationException();
-    }
-
-    public final boolean isCache() {
-        throw new UnsupportedOperationException();
-    }
-
     public final OMElement getDocumentElement() {
         return getDocument().getOMDocumentElement();
     }

Modified: webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/common/builder/StAXOMBuilder.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/common/builder/StAXOMBuilder.java?rev=1734178&r1=1734177&r2=1734178&view=diff
==============================================================================
--- webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/common/builder/StAXOMBuilder.java
(original)
+++ webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/common/builder/StAXOMBuilder.java
Tue Mar  8 23:19:29 2016
@@ -39,11 +39,6 @@ public class StAXOMBuilder extends Abstr
 
     private final Detachable detachable;
     
-    // keeps the state of the parser access. if the parser is
-    // accessed atleast once,this flag will be set
-
-    /** Field parserAccessed */
-    private boolean parserAccessed = false;
     private String charEncoding = null;
     
     private CustomBuilderManager customBuilderManager;
@@ -76,26 +71,6 @@ public class StAXOMBuilder extends Abstr
         return helper.parser.getNamespaceURI();
     }
 
-    /**
-     * Method setCache.
-     *
-     * @param b
-     */
-    public final void setCache(boolean b) {
-        if (parserAccessed && b) {
-            throw new UnsupportedOperationException(
-                    "parser accessed. cannot set cache");
-        }
-        builderHandler.cache = b;
-    }
-    
-    /**
-     * @return true if caching
-     */
-    public final boolean isCache() {
-        return builderHandler.cache;
-    }
-
     public final String getLocalName() {
         return helper.parser.getLocalName();
     }
@@ -160,9 +135,6 @@ public class StAXOMBuilder extends Abstr
      * @throws OMException
      */
     public int next() throws OMException {
-        if (!builderHandler.cache) {
-            throw new IllegalStateException("Can't process next node because caching is disabled");
-        }
         if (builderHandler.done) {
             throw new OMException();
         }

Modified: webservices/axiom/trunk/axiom-api/src/main/java/org/apache/axiom/om/OMXMLParserWrapper.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/axiom-api/src/main/java/org/apache/axiom/om/OMXMLParserWrapper.java?rev=1734178&r1=1734177&r2=1734178&view=diff
==============================================================================
--- webservices/axiom/trunk/axiom-api/src/main/java/org/apache/axiom/om/OMXMLParserWrapper.java
(original)
+++ webservices/axiom/trunk/axiom-api/src/main/java/org/apache/axiom/om/OMXMLParserWrapper.java
Tue Mar  8 23:19:29 2016
@@ -41,19 +41,6 @@ public interface OMXMLParserWrapper {
      */
     int next() throws OMException;
 
-    /**
-     * @param b
-     * @throws org.apache.axiom.om.OMException
-     *
-     * @throws OMException
-     */
-    void setCache(boolean b) throws OMException;
-    
-    /**
-     * @return true if caching
-     */
-    boolean isCache();
-
     /** @return Returns the complete status. */
     boolean isCompleted();
 

Modified: webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/soap/impl/builder/StAXSOAPModelBuilder.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/soap/impl/builder/StAXSOAPModelBuilder.java?rev=1734178&r1=1734177&r2=1734178&view=diff
==============================================================================
--- webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/soap/impl/builder/StAXSOAPModelBuilder.java
(original)
+++ webservices/axiom/trunk/axiom-compat/src/main/java/org/apache/axiom/soap/impl/builder/StAXSOAPModelBuilder.java
Tue Mar  8 23:19:29 2016
@@ -75,14 +75,6 @@ public class StAXSOAPModelBuilder implem
         return target.getSOAPMessage();
     }
 
-    public void setCache(boolean b) throws OMException {
-        target.setCache(b);
-    }
-
-    public boolean isCache() {
-        return target.isCache();
-    }
-
     public boolean isCompleted() {
         return target.isCompleted();
     }



Mime
View raw message