support for sizeless records (header only)

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352633 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew C. Oliver 2002-05-19 15:52:05 +00:00
parent 8e547247a8
commit 7b8e69897b

View File

@ -147,7 +147,7 @@ public class FieldIterator
public String calcSize( int fieldNumber, String fieldName, String size, String type) public String calcSize( int fieldNumber, String fieldName, String size, String type)
{ {
String result = fieldNumber == 1 ? "" : " + "; String result = " + ";
if ("var".equals(size)) if ("var".equals(size))
{ {
String javaFieldName = RecordUtil.getFieldName(fieldNumber,fieldName,0); String javaFieldName = RecordUtil.getFieldName(fieldNumber,fieldName,0);