From b2213329e2e5f157d8a555814672bc98e7905c6f Mon Sep 17 00:00:00 2001 From: Sergey Vladimirov Date: Wed, 21 Sep 2011 15:33:29 +0000 Subject: [PATCH] fix default values for byte[] fields in autogenerated files git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1173719 13f79535-47bb-0310-9956-ffa450edef68 --- src/types/styles/hdftype.xsl | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/types/styles/hdftype.xsl b/src/types/styles/hdftype.xsl index ba8297e892..303433302c 100644 --- a/src/types/styles/hdftype.xsl +++ b/src/types/styles/hdftype.xsl @@ -90,6 +90,16 @@ public abstract class Abstrac + + + + this. + + = new byte[ + + ]; + + @@ -152,6 +162,14 @@ public abstract class Abstrac } + + public byte[] serialize() + { + final byte[] result = new byte[ getSize() ]; + serialize( result, 0 ); + return result; + } + /** * Size of record