You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by kl...@apache.org on 2003/09/01 20:53:28 UTC

cvs commit: jakarta-poi/src/java/org/apache/poi/hpsf/wellknown PropertyIDMap.java SectionIDMap.java

klute       2003/09/01 11:53:28

  Modified:    src/java/org/apache/poi/hpsf Section.java
               src/java/org/apache/poi/hpsf/wellknown PropertyIDMap.java
                        SectionIDMap.java
  Log:
  Property ID handling fixed (long vs. int).
  
  Revision  Changes    Path
  1.15      +3 -3      jakarta-poi/src/java/org/apache/poi/hpsf/Section.java
  
  Index: Section.java
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/src/java/org/apache/poi/hpsf/Section.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- Section.java	30 Aug 2003 09:13:52 -0000	1.14
  +++ Section.java	1 Sep 2003 18:53:28 -0000	1.15
  @@ -477,11 +477,11 @@
        *
        * @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)
  
  
  
  1.10      +3 -3      jakarta-poi/src/java/org/apache/poi/hpsf/wellknown/PropertyIDMap.java
  
  Index: PropertyIDMap.java
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/src/java/org/apache/poi/hpsf/wellknown/PropertyIDMap.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- PropertyIDMap.java	30 Aug 2003 09:13:53 -0000	1.9
  +++ PropertyIDMap.java	1 Sep 2003 18:53:28 -0000	1.10
  @@ -304,9 +304,9 @@
        * @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));
       }
   
   
  
  
  
  1.7       +2 -2      jakarta-poi/src/java/org/apache/poi/hpsf/wellknown/SectionIDMap.java
  
  Index: SectionIDMap.java
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/src/java/org/apache/poi/hpsf/wellknown/SectionIDMap.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- SectionIDMap.java	2 Aug 2003 19:02:28 -0000	1.6
  +++ SectionIDMap.java	1 Sep 2003 18:53:28 -0000	1.7
  @@ -151,7 +151,7 @@
        * string "[undefined]" is returned.
        */
       public static String getPIDString(final byte[] sectionFormatID,
  -                                      final int pid)
  +                                      final long pid)
       {
           final PropertyIDMap m =
               (PropertyIDMap) getInstance().get(sectionFormatID);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-dev-help@jakarta.apache.org