poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject cvs commit: jakarta-poi/src/java/org/apache/poi/hssf/record/formula Ptg.java
Date Sun, 27 Jul 2003 18:24:33 GMT
avik        2003/07/27 11:24:33

  Modified:    src/java/org/apache/poi/hssf/record/formula Ptg.java
  Log:
  MERGE from REL_2_BRANCH: for better diffing during debugging, implement a toString method
in Ptg
  
  Revision  Changes    Path
  1.31      +8 -0      jakarta-poi/src/java/org/apache/poi/hssf/record/formula/Ptg.java
  
  Index: Ptg.java
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/src/java/org/apache/poi/hssf/record/formula/Ptg.java,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- Ptg.java	25 Jul 2003 20:11:27 -0000	1.30
  +++ Ptg.java	27 Jul 2003 18:24:33 -0000	1.31
  @@ -363,6 +363,14 @@
           return retval;
       }
       
  +    /** Overridden toString method to ensure object hash is not printed.
  +     * This helps get rid of gratuitous diffs when comparing two dumps
  +     * Subclasses may output more relevant information by overriding this method
  +     **/
  +    public String toString(){
  +        return this.getClass().toString();
  +    }
  +    
       public static final byte CLASS_REF = 0x00;
       public static final byte CLASS_VALUE = 0x20;
       public static final byte CLASS_ARRAY = 0x40;
  
  
  

Mime
View raw message