poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r761862 - /poi/trunk/src/java/org/apache/poi/hssf/record/formula/MemAreaPtg.java
Date Sat, 04 Apr 2009 02:53:08 GMT
Author: josh
Date: Sat Apr  4 02:53:08 2009
New Revision: 761862

URL: http://svn.apache.org/viewvc?rev=761862&view=rev
Log:
Added toString debug method to MemAreaPtg

Modified:
    poi/trunk/src/java/org/apache/poi/hssf/record/formula/MemAreaPtg.java

Modified: poi/trunk/src/java/org/apache/poi/hssf/record/formula/MemAreaPtg.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/hssf/record/formula/MemAreaPtg.java?rev=761862&r1=761861&r2=761862&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/hssf/record/formula/MemAreaPtg.java (original)
+++ poi/trunk/src/java/org/apache/poi/hssf/record/formula/MemAreaPtg.java Sat Apr  4 02:53:08
2009
@@ -23,7 +23,7 @@
 /**
  * @author Daniel Noll (daniel at nuix dot com dot au)
  */
-public class MemAreaPtg extends OperandPtg {
+public final class MemAreaPtg extends OperandPtg {
 	public final static short sid = 0x26;
 	private final static int SIZE = 7;
 	private final int field_1_reserved;
@@ -58,4 +58,13 @@
 	public byte getDefaultOperandClass() {
 		return Ptg.CLASS_VALUE;
 	}
+
+	@Override
+	public final String toString() {
+		StringBuffer sb = new StringBuffer(64);
+		sb.append(getClass().getName()).append(" [len=");
+		sb.append(field_2_subex_len);
+		sb.append("]");
+		return sb.toString();
+	}
 }



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


Mime
View raw message