From 7b9803652ace7650bf329e4834c84865ddd49f69 Mon Sep 17 00:00:00 2001 From: Josh Micich Date: Sat, 4 Apr 2009 02:53:08 +0000 Subject: [PATCH] Added toString debug method to MemAreaPtg git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@761862 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/poi/hssf/record/formula/MemAreaPtg.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/poi/hssf/record/formula/MemAreaPtg.java b/src/java/org/apache/poi/hssf/record/formula/MemAreaPtg.java index 58a836e28f..d0b20e2c12 100644 --- a/src/java/org/apache/poi/hssf/record/formula/MemAreaPtg.java +++ b/src/java/org/apache/poi/hssf/record/formula/MemAreaPtg.java @@ -23,7 +23,7 @@ import org.apache.poi.util.LittleEndianOutput; /** * @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 class MemAreaPtg extends OperandPtg { 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(); + } } -- 2.39.5