]> source.dussan.org Git - poi.git/commitdiff
remove some deprecated code slated for removal in 3.18
authorPJ Fanning <fanningpj@apache.org>
Fri, 15 Sep 2017 20:17:21 +0000 (20:17 +0000)
committerPJ Fanning <fanningpj@apache.org>
Fri, 15 Sep 2017 20:17:21 +0000 (20:17 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1808483 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/ddf/EscherContainerRecord.java
src/java/org/apache/poi/hpsf/VariantSupport.java
src/java/org/apache/poi/poifs/crypt/EncryptionVerifier.java

index b09fb855c9950a4dcb04f214b86893ad0fd8d2f2..82ae37481c1a1f168da7a3ca41b4564d4238e599 100644 (file)
@@ -27,7 +27,6 @@ import org.apache.poi.util.HexDump;
 import org.apache.poi.util.LittleEndian;
 import org.apache.poi.util.POILogFactory;
 import org.apache.poi.util.POILogger;
-import org.apache.poi.util.Removal;
 
 /**
  * Escher container records store other escher records as children.
@@ -152,17 +151,6 @@ public final class EscherContainerRecord extends EscherRecord implements Iterabl
         return new ArrayList<EscherRecord>(_childRecords);
     }
 
-    /**
-     * @return an iterator over the child records
-     * @deprecated POI 3.16 beta 1. use iterator() or loop over the container record instead,
-     *     e.g. "for (EscherRecord r : container) ..."
-     */
-    @Removal(version="3.18")
-    @Deprecated
-    public Iterator<EscherRecord> getChildIterator() {
-        return iterator();
-    }
-
     /**
      * @return an iterator over the child records
      */
index 61e6bb8db945634c0fe0b0c1f83984c0205fa4db..373d5df392bf435cbe425a92e9305597e97cfba7 100644 (file)
@@ -25,13 +25,11 @@ import java.util.Date;
 import java.util.LinkedList;
 import java.util.List;
 
-import org.apache.poi.util.CodePageUtil;
 import org.apache.poi.util.LittleEndian;
 import org.apache.poi.util.LittleEndianByteArrayInputStream;
 import org.apache.poi.util.LittleEndianConsts;
 import org.apache.poi.util.POILogFactory;
 import org.apache.poi.util.POILogger;
-import org.apache.poi.util.Removal;
 
 /**
  * Supports reading and writing of variant data.<p>
@@ -256,31 +254,6 @@ public class VariantSupport extends Variant {
         }
     }
 
-    /**
-     * Turns a codepage number into the equivalent character encoding's
-     * name.
-     *
-     * @param codepage The codepage number
-     *
-     * @return The character encoding's name. If the codepage number is 65001,
-     * the encoding name is "UTF-8". All other positive numbers are mapped to
-     * "cp" followed by the number, e.g. if the codepage number is 1252 the
-     * returned character encoding name will be "cp1252".
-     *
-     * @exception UnsupportedEncodingException if the specified codepage is
-     * less than zero.
-     *
-     * @deprecated POI 3.16 - use {@link CodePageUtil#codepageToEncoding(int)}
-     */
-    @Deprecated
-    @Removal(version="3.18")
-    public static String codepageToEncoding(final int codepage)
-    throws UnsupportedEncodingException
-    {
-        return CodePageUtil.codepageToEncoding(codepage);
-    }
-
-
     /**
      * Writes a variant value to an output stream. This method ensures that
      * always a multiple of 4 bytes is written.<p>
index df216c0714c7ebde415469a72c20c6520a7d4a4d..3601e01022339bc0569a0c5bd3d5b5c04eb16c7b 100644 (file)
@@ -16,8 +16,6 @@
 ==================================================================== */
 package org.apache.poi.poifs.crypt;
 
-import org.apache.poi.util.Removal;
-
 /**
  * Used when checking if a key is valid for a document 
  */
@@ -50,21 +48,6 @@ public abstract class EncryptionVerifier implements Cloneable {
         return spinCount;
     }
 
-    /**
-     * @deprecated POI 3.16 beta 1. use {@link #getChainingMode()}
-     */
-    @Removal(version="3.18")
-    public int getCipherMode() {
-        return chainingMode.ecmaId;
-    }
-
-    /**
-     * @deprecated POI 3.16 beta 1. use {@link #getCipherAlgorithm()}
-     */
-    public int getAlgorithm() {
-        return cipherAlgorithm.ecmaId;
-    }
-
     public byte[] getEncryptedKey() {
         return encryptedKey;
     }