Property ID handling fixed (long vs. int).

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353332 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Rainer Klute 2003-09-01 18:53:28 +00:00
parent 0f1a7a40b6
commit 3aabec7f22
3 changed files with 5 additions and 5 deletions

View File

@ -477,11 +477,11 @@ public class Section
*
* @return The property ID's string value
*/
public String getPIDString(final int pid)
public String getPIDString(final long pid)
{
String s = null;
if (dictionary != null)
s = (String) dictionary.get(new Integer(pid));
s = (String) dictionary.get(new Long(pid));
if (s == null)
s = SectionIDMap.getPIDString(getFormatID().getBytes(), pid);
if (s == null)

View File

@ -304,9 +304,9 @@ public class PropertyIDMap extends HashMap
* @param id The ID.
* @return The ID string associated with <var>id</var>.
*/
public Object get(final int id)
public Object get(final long id)
{
return get(new Integer(id));
return get(new Long(id));
}

View File

@ -151,7 +151,7 @@ public class SectionIDMap extends HashMap
* string "[undefined]" is returned.
*/
public static String getPIDString(final byte[] sectionFormatID,
final int pid)
final long pid)
{
final PropertyIDMap m =
(PropertyIDMap) getInstance().get(sectionFormatID);