diff options
author | Andreas L. Delmelle <adelmelle@apache.org> | 2011-02-15 20:30:44 +0000 |
---|---|---|
committer | Andreas L. Delmelle <adelmelle@apache.org> | 2011-02-15 20:30:44 +0000 |
commit | 0648049cfebd3a5f4c8a3fd023f722f6b6340a17 (patch) | |
tree | e17fe66c310e28e03712def68b252f616652db2a | |
parent | e04d597c421d9198860772d07a2bda688cc45285 (diff) | |
download | xmlgraphics-fop-0648049cfebd3a5f4c8a3fd023f722f6b6340a17.tar.gz xmlgraphics-fop-0648049cfebd3a5f4c8a3fd023f722f6b6340a17.zip |
Checkstyle fixes
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1071037 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/java/org/apache/fop/pdf/PDFColorHandler.java | 4 | ||||
-rw-r--r-- | src/java/org/apache/fop/util/ConversionUtils.java | 24 |
2 files changed, 28 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/pdf/PDFColorHandler.java b/src/java/org/apache/fop/pdf/PDFColorHandler.java index 76a6cab78..a15349212 100644 --- a/src/java/org/apache/fop/pdf/PDFColorHandler.java +++ b/src/java/org/apache/fop/pdf/PDFColorHandler.java @@ -50,6 +50,10 @@ public class PDFColorHandler { private Map<String, PDFCIELabColorSpace> cieLabColorSpaces; + /** + * Create a new instance for the given {@link PDFResources} + * @param resources the PDF resources + */ public PDFColorHandler(PDFResources resources) { this.resources = resources; } diff --git a/src/java/org/apache/fop/util/ConversionUtils.java b/src/java/org/apache/fop/util/ConversionUtils.java index fcdb4cdbd..15251cd86 100644 --- a/src/java/org/apache/fop/util/ConversionUtils.java +++ b/src/java/org/apache/fop/util/ConversionUtils.java @@ -112,4 +112,28 @@ public final class ConversionUtils { } + /** + * Concatenates the given array of <code>int</code>s into a <code>java.lang.String</code>, + * separated by the specified separator character. + * @param intArray the int array + * @param separator the separator char + * @return a String representing the int array + */ + public static String toString(int[] intArray, String separator) { + + if (intArray == null || intArray.length == 0) { + return ""; + } + + StringBuffer sb = new StringBuffer(64); + int arrayLength = intArray.length; + for (int i = 0; i < arrayLength; ++i) { + sb.append(intArray[i]); + if (i < (arrayLength - 1)) { + sb.append(separator); + } + } + return sb.toString(); + } + } |