MERGE from REL_2_BRANCH: for better diffing during debugging, implement a toString method in Ptg

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353256 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Avik Sengupta 2003-07-27 18:24:33 +00:00
parent 876bf7b229
commit 8b3403c12d
1 changed files with 8 additions and 0 deletions

View File

@ -363,6 +363,14 @@ public abstract class Ptg
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;