From e6d316c6e7625f2109dad761778131d50e9cc0bf Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Mon, 3 Mar 2008 17:47:36 +0000 Subject: [PATCH] Fix indent, add more documentation, and make the error message more helpful git-svn-id: https://svn.eu.apache.org/repos/asf/poi/trunk@633205 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/poi/hssf/record/formula/ArrayPtg.java | 27 +++++++++++----------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/java/org/apache/poi/hssf/record/formula/ArrayPtg.java b/src/java/org/apache/poi/hssf/record/formula/ArrayPtg.java index 372b185..12166b7 100644 --- a/src/java/org/apache/poi/hssf/record/formula/ArrayPtg.java +++ b/src/java/org/apache/poi/hssf/record/formula/ArrayPtg.java @@ -72,8 +72,10 @@ public class ArrayPtg extends Ptg field_7_reserved = in.readByte(); } - /** Read in the actual token (array) values. This occurs AFTER the last - * Ptg in the expression. + /** + * Read in the actual token (array) values. This occurs + * AFTER the last Ptg in the expression. + * See page 304-305 of Excel97-2007BinaryFileFormat(xls)Specification.pdf */ public void readTokenValues(RecordInputStream in) { token_1_columns = (short)(0x00ff & in.readByte()); @@ -88,18 +90,17 @@ public class ArrayPtg extends Ptg token_3_arrayValues = new Object[token_1_columns][token_2_rows]; for (int x=0;x