Author: fanningpj
Date: Sun Mar  4 11:47:21 2018
New Revision: 1825807

URL: http://svn.apache.org/viewvc?rev=1825807&view=rev
Log:
remove some deprecated methods

Modified:
    poi/trunk/src/ooxml/java/org/apache/poi/POIXMLTypeLoader.java
    poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFTable.java
    poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFChart.java

Modified: poi/trunk/src/ooxml/java/org/apache/poi/POIXMLTypeLoader.java
URL: 
http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/POIXMLTypeLoader.java?rev=1825807&r1=1825806&r2=1825807&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/POIXMLTypeLoader.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/POIXMLTypeLoader.java Sun Mar  4 
11:47:21 2018
@@ -97,26 +97,6 @@ public class POIXMLTypeLoader {
     private static XmlOptions getXmlOptions(XmlOptions options) {
         return options == null ? DEFAULT_XML_OPTIONS : options;
     }
-
-    /**
-     * Sets the {@link ClassLoader} which is used, when XmlBeans are 
dynamically instantiated -
-     * opposed to being loaded by the factory class which is accompanied by 
each generated XmlBeans interface.
-     * <p>
-     * This is especially necessary in a context which doesn't guarantee that 
the current (thread) context
-     * classloader has access to all XmlBeans schema definitions (*.xsb) - 
which is typically in OSGI the case.
-     * <p>
-     * The classloader will be only set for the current thread in a {@link 
ThreadLocal}. Although the
-     * ThreadLocal is implemented via a {@link WeakReference}, it's good style 
to {@code null} the classloader
-     * when the user code is finalized.
-     * 
-     * @param cl the classloader to be used when XmlBeans classes and 
definitions are looked up
-     * @deprecated in POI 3.17 - setting a classloader from the outside is now 
obsolete,
-     *  the classloader of the SchemaType will be used
-     */
-    @Deprecated
-    @Removal(version="4.0")
-    public static void setClassLoader(ClassLoader cl) {
-    }
     
     private static SchemaTypeLoader getTypeLoader(SchemaType type) {
         SchemaTypeLoader tl = typeLoader.get();

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFTable.java
URL: 
http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFTable.java?rev=1825807&r1=1825806&r2=1825807&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFTable.java 
(original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFTable.java Sun 
Mar  4 11:47:21 2018
@@ -71,8 +71,7 @@ public class XSLFTable extends XSLFGraph
                 String errStr =
                     "Schemas (*.xsb) for CTTable can't be loaded - usually 
this happens when OSGI " +
                     "loading is used and the thread context classloader has no 
reference to " +
-                    "the xmlbeans classes - use 
POIXMLTypeLoader.setClassLoader() to set the loader, " +
-                    "e.g. with CTTable.class.getClassLoader()"
+                    "the xmlbeans classes"
                 ;
                 throw new IllegalStateException(errStr);
             }

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFChart.java
URL: 
http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFChart.java?rev=1825807&r1=1825806&r2=1825807&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFChart.java 
(original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFChart.java Sun 
Mar  4 11:47:21 2018
@@ -301,17 +301,6 @@ public final class XSSFChart extends XDD
                return new XSSFRichTextString(text.toString());
        }
 
-       /**
-        * Sets the title text as a static string.
-        * @param newTitle to use
-        * @deprecated POI 3.16, use {@link #setTitleText(String)} instead.
-        */
-    @Deprecated
-    @Removal(version = "4.0")
-    public void setTitle(String newTitle) {
-
-    }
-
     /**
      * Sets the title text as a static string.
      *
@@ -342,8 +331,7 @@ public final class XSSFChart extends XDD
             rich = tx.getRich();
         } else {
             rich = tx.addNewRich();
-            rich.addNewBodyPr(); // body properties must exist (but can be
-                                 // empty)
+            rich.addNewBodyPr(); // body properties must exist (but can be 
empty)
         }
 
         CTTextParagraph para;



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to