]> source.dussan.org Git - poi.git/commitdiff
Property ID handling fixed (long vs. int).
authorRainer Klute <klute@apache.org>
Mon, 1 Sep 2003 18:53:28 +0000 (18:53 +0000)
committerRainer Klute <klute@apache.org>
Mon, 1 Sep 2003 18:53:28 +0000 (18:53 +0000)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353332 13f79535-47bb-0310-9956-ffa450edef68

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

index 31538b71b81a1a68426f1da5f5b5fa23e0e3a989..9e6ad9a89b945353c193140881aefeecbed12b1b 100644 (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)
index 00f6eb38f03059010407915c373b56f2f5cfb5be..f456629bc6d30e344f91ab1c836bbf2b07cf596c 100644 (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));
     }
 
 
index 7dfe60fd09c9f7dbfc27f364789a2922857a9153..12ca4c2275a72a86eca063efd942139e43d44dd2 100644 (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);