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 2016/02/13 23:54:39 UTC

svn commit: r1730280 - /webservices/axiom/trunk/axiom-api/src/main/java/org/apache/axiom/om/util/StAXUtils.java

Author: veithen
Date: Sat Feb 13 22:54:39 2016
New Revision: 1730280

URL: http://svn.apache.org/viewvc?rev=1730280&view=rev
Log:
Remove deprecated methods from StAXUtils.

Modified:
    webservices/axiom/trunk/axiom-api/src/main/java/org/apache/axiom/om/util/StAXUtils.java

Modified: webservices/axiom/trunk/axiom-api/src/main/java/org/apache/axiom/om/util/StAXUtils.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/axiom-api/src/main/java/org/apache/axiom/om/util/StAXUtils.java?rev=1730280&r1=1730279&r2=1730280&view=diff
==============================================================================
--- webservices/axiom/trunk/axiom-api/src/main/java/org/apache/axiom/om/util/StAXUtils.java (original)
+++ webservices/axiom/trunk/axiom-api/src/main/java/org/apache/axiom/om/util/StAXUtils.java Sat Feb 13 22:54:39 2016
@@ -22,7 +22,6 @@ package org.apache.axiom.om.util;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.apache.axiom.om.OMConstants;
-import org.apache.axiom.util.stax.XMLEventUtils;
 import org.apache.axiom.util.stax.dialect.StAXDialect;
 import org.apache.axiom.util.stax.dialect.StAXDialectDetector;
 import org.apache.axiom.util.stax.wrapper.ImmutableXMLInputFactory;
@@ -171,15 +170,6 @@ public class StAXUtils {
         }
     }
 
-    /**
-     * @deprecated
-     * Returns an XMLInputFactory instance for reuse.
-     *
-     * @param factory An XMLInputFactory instance that is available for reuse
-     */
-    public static void releaseXMLInputFactory(XMLInputFactory factory) {
-    }
-
     public static XMLStreamReader createXMLStreamReader(InputStream in, String encoding)
             throws XMLStreamException {
         
@@ -307,15 +297,6 @@ public class StAXUtils {
         isFactoryPerClassLoader = value;
     }
 
-    /**
-     * @deprecated
-     * Returns an XMLOutputFactory instance for reuse.
-     *
-     * @param factory An XMLOutputFactory instance that is available for reuse.
-     */
-    public static void releaseXMLOutputFactory(XMLOutputFactory factory) {
-    }
-
     public static XMLStreamWriter createXMLStreamWriter(OutputStream out)
             throws XMLStreamException {
         
@@ -362,12 +343,6 @@ public class StAXUtils {
     }
 
     /**
-     * @deprecated
-     */
-    public static void reset() {
-    }
-    
-    /**
      * Load factory properties from a resource. The context class loader is used to locate
      * the resource. The method converts boolean and integer values to the right Java types.
      * All other values are returned as strings.
@@ -680,49 +655,4 @@ public class StAXUtils {
             );
         }
     }
-
-    /**
-     * @deprecated use {@link #createXMLStreamReader(StAXParserConfiguration, InputStream, String)}
-     *             with {@link StAXParserConfiguration#STANDALONE}
-     */
-    public static XMLStreamReader createNetworkDetachedXMLStreamReader(InputStream in, String encoding)
-            throws XMLStreamException {
-        
-        return createXMLStreamReader(StAXParserConfiguration.STANDALONE, in, encoding);
-    }
-
-    /**
-     * @deprecated use {@link #getXMLInputFactory(StAXParserConfiguration)} with
-     *             {@link StAXParserConfiguration#STANDALONE}
-     */
-    public static XMLInputFactory getNetworkDetachedXMLInputFactory() {
-        return getXMLInputFactory(StAXParserConfiguration.STANDALONE);
-    }
-    
-    /**
-     * @deprecated use {@link #createXMLStreamReader(StAXParserConfiguration, InputStream)}
-     *             with {@link StAXParserConfiguration#STANDALONE}
-     */
-    public static XMLStreamReader createNetworkDetachedXMLStreamReader(InputStream in)
-            throws XMLStreamException {
-        
-        return createXMLStreamReader(StAXParserConfiguration.STANDALONE, in);
-    }
-
-    /**
-     * @deprecated use {@link #createXMLStreamReader(StAXParserConfiguration, Reader)}
-     *             with {@link StAXParserConfiguration#STANDALONE}
-     */
-    public static XMLStreamReader createNetworkDetachedXMLStreamReader(Reader in)
-            throws XMLStreamException {
-        
-        return createXMLStreamReader(StAXParserConfiguration.STANDALONE, in);
-    }
-
-    /**
-     * @deprecated Use {@link XMLEventUtils#getEventTypeString(int)} instead
-     */
-    public static String getEventTypeString(int event) {
-        return XMLEventUtils.getEventTypeString(event);
-    }
 }