bug 59170: remove deprecated methods in o.a.p.hpsf.wellknown.SectionIDMap
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1748481 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e9be07056b
commit
ccdc23ab43
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user