diff options
author | Peter Hancock <phancock@apache.org> | 2011-08-22 09:59:53 +0000 |
---|---|---|
committer | Peter Hancock <phancock@apache.org> | 2011-08-22 09:59:53 +0000 |
commit | c3e956474f171eec631678fb5797e5469675b009 (patch) | |
tree | 953c36ef49c9eeeb156534a07865cdcb152b9700 /src/java | |
parent | 5ed41f9cfcb958b68348f7ed87581ae4613cf0e0 (diff) | |
download | xmlgraphics-fop-c3e956474f171eec631678fb5797e5469675b009.tar.gz xmlgraphics-fop-c3e956474f171eec631678fb5797e5469675b009.zip |
Fixed checkstyle warnings
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1160172 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java')
-rw-r--r-- | src/java/org/apache/fop/afp/modca/AbstractAFPObject.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/afp/modca/AbstractAFPObject.java b/src/java/org/apache/fop/afp/modca/AbstractAFPObject.java index a88c0e4c9..1dd14b124 100644 --- a/src/java/org/apache/fop/afp/modca/AbstractAFPObject.java +++ b/src/java/org/apache/fop/afp/modca/AbstractAFPObject.java @@ -56,6 +56,7 @@ public abstract class AbstractAFPObject implements Streamable { 0x00, // Reserved }; + /** Length of bytes of a Structured Field Header */ protected static final int SF_HEADER_LENGTH = SF_HEADER.length; /** @@ -78,7 +79,7 @@ public abstract class AbstractAFPObject implements Streamable { * @param category the category code */ protected static void copySF(byte[] data, byte clazz, byte type, byte category) { - System.arraycopy(SF_HEADER, 0, data, 0, SF_HEADER.length); + System.arraycopy(SF_HEADER, 0, data, 0, SF_HEADER_LENGTH); data[3] = clazz; data[4] = type; data[5] = category; @@ -88,6 +89,7 @@ public abstract class AbstractAFPObject implements Streamable { * Writes a collection of Streamable to the AFP Datastream. * * @param objects a list of AFPObjects + * @param <S> Streamable view of an AFPObject * @param os The stream to write to * @throws java.io.IOException an I/O exception of some sort has occurred. */ |