Browse Source

Checkstyle fixes

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1071037 13f79535-47bb-0310-9956-ffa450edef68
tags/fop-1_1rc1old
Andreas L. Delmelle 13 years ago
parent
commit
0648049cfe

+ 4
- 0
src/java/org/apache/fop/pdf/PDFColorHandler.java View File

@@ -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;
}

+ 24
- 0
src/java/org/apache/fop/util/ConversionUtils.java View File

@@ -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();
}
}

Loading…
Cancel
Save