From: Andreas L. Delmelle Date: Tue, 15 Feb 2011 20:30:44 +0000 (+0000) Subject: Checkstyle fixes X-Git-Tag: fop-1_1rc1old~281 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0648049cfebd3a5f4c8a3fd023f722f6b6340a17;p=xmlgraphics-fop.git Checkstyle fixes git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1071037 13f79535-47bb-0310-9956-ffa450edef68 --- 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 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 ints into a java.lang.String, + * 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(); + } + }