]> source.dussan.org Git - poi.git/commitdiff
bug 59170: remove deprecated methods in o.a.p.hpsf.wellknown.SectionIDMap
authorJaven O'Neal <onealj@apache.org>
Wed, 15 Jun 2016 02:48:23 +0000 (02:48 +0000)
committerJaven O'Neal <onealj@apache.org>
Wed, 15 Jun 2016 02:48:23 +0000 (02:48 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1748481 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/hpsf/wellknown/SectionIDMap.java

index 53a8b9bb00b993ffe57b6d3a6a1eb5c228bdfb4c..e71c9e87b70c88cecdeeaf429cc59e6eb40e630b 100644 (file)
@@ -144,19 +144,6 @@ public class SectionIDMap extends HashMap {
         return (PropertyIDMap)super.get(new String(sectionFormatID, StringUtil.UTF8));
     }
 
-    /**
-     * <p>Returns the {@link PropertyIDMap} for a given section format
-     * ID.</p>
-     *
-     * @param sectionFormatID A section format ID as a <tt>byte[]</tt> .
-     * @deprecated Use {@link #get(byte[])} instead!
-     * @return the property ID map
-     */
-    public PropertyIDMap get(final Object sectionFormatID)
-    {
-        return get((byte[]) sectionFormatID);
-    }
-
     /**
      * <p>Associates a section format ID with a {@link
      * PropertyIDMap}.</p>
@@ -178,23 +165,4 @@ public class SectionIDMap extends HashMap {
     protected PropertyIDMap put(String key, PropertyIDMap value) {
         return (PropertyIDMap)super.put(key, value);
     }
-
-    /**
-     * @deprecated Use {@link #put(byte[], PropertyIDMap)} instead!
-     *
-     * @see #put(byte[], PropertyIDMap)
-     *
-     * @param key This parameter remains undocumented since the method is
-     * deprecated.
-     * @param value This parameter remains undocumented since the method is
-     * deprecated.
-     * @return The return value remains undocumented since the method is
-     * deprecated.
-     */
-    public PropertyIDMap put(final Object key, final Object value)
-    {
-        if (key instanceof String)
-            return put((String)key, (PropertyIDMap) value);
-        return put((byte[]) key, (PropertyIDMap) value);
-    }
 }