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, 08 Jun 2003 12:30:44 GMT
avik        2003/06/08 05:30:43

  Modified:    src/java/org/apache/poi/hssf/record/formula Tag:
                        REL_2_BRANCH Ptg.java
  Log:
  for better diffing during debugging, implement a toString method in Ptg
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.29.2.2  +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.29.2.1
  retrieving revision 1.29.2.2
  diff -u -r1.29.2.1 -r1.29.2.2
  --- Ptg.java	3 Jun 2003 12:42:09 -0000	1.29.2.1
  +++ Ptg.java	8 Jun 2003 12:30:43 -0000	1.29.2.2
  @@ -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