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:
parent
0f1a7a40b6
commit
3aabec7f22
@ -477,11 +477,11 @@ public class Section
|
|||||||
*
|
*
|
||||||
* @return The property ID's string value
|
* @return The property ID's string value
|
||||||
*/
|
*/
|
||||||
public String getPIDString(final int pid)
|
public String getPIDString(final long pid)
|
||||||
{
|
{
|
||||||
String s = null;
|
String s = null;
|
||||||
if (dictionary != null)
|
if (dictionary != null)
|
||||||
s = (String) dictionary.get(new Integer(pid));
|
s = (String) dictionary.get(new Long(pid));
|
||||||
if (s == null)
|
if (s == null)
|
||||||
s = SectionIDMap.getPIDString(getFormatID().getBytes(), pid);
|
s = SectionIDMap.getPIDString(getFormatID().getBytes(), pid);
|
||||||
if (s == null)
|
if (s == null)
|
||||||
|
@ -304,9 +304,9 @@ public class PropertyIDMap extends HashMap
|
|||||||
* @param id The ID.
|
* @param id The ID.
|
||||||
* @return The ID string associated with <var>id</var>.
|
* @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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -151,7 +151,7 @@ public class SectionIDMap extends HashMap
|
|||||||
* string "[undefined]" is returned.
|
* string "[undefined]" is returned.
|
||||||
*/
|
*/
|
||||||
public static String getPIDString(final byte[] sectionFormatID,
|
public static String getPIDString(final byte[] sectionFormatID,
|
||||||
final int pid)
|
final long pid)
|
||||||
{
|
{
|
||||||
final PropertyIDMap m =
|
final PropertyIDMap m =
|
||||||
(PropertyIDMap) getInstance().get(sectionFormatID);
|
(PropertyIDMap) getInstance().get(sectionFormatID);
|
||||||
|
Loading…
Reference in New Issue
Block a user