Browse Source

Checkstyle fixes


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1567039 13f79535-47bb-0310-9956-ffa450edef68
tags/fop-2_0
Vincent Hennebert 10 years ago
parent
commit
cd237ca578

+ 6
- 6
test/java/org/apache/fop/fonts/truetype/OTFSubSetFileTestCase.java View File

@@ -29,6 +29,9 @@ import java.util.Map;
import org.junit.Before;
import org.junit.Test;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

import org.apache.fontbox.cff.CFFFont;

import org.apache.fop.fonts.cff.CFFDataReader;
@@ -36,9 +39,6 @@ import org.apache.fop.fonts.cff.CFFDataReader.CFFIndexData;
import org.apache.fop.fonts.cff.CFFDataReader.DICTEntry;
import org.apache.fop.fonts.truetype.OTFSubSetFile.BytesNumber;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

public class OTFSubSetFileTestCase extends OTFFileTestCase {

CFFDataReader cffReaderSourceSans;
@@ -111,7 +111,7 @@ public class OTFSubSetFileTestCase extends OTFFileTestCase {
byte[] charData = charStrings.getValue(i);
List<BytesNumber> origOperands = getFullCharString(origCharData, origCFF);
List<BytesNumber> subsetOperands = getFullCharString(charData, subsetCFF);
for (int j = 0;j < origOperands.size();j++) {
for (int j = 0; j < origOperands.size(); j++) {
assertTrue(origOperands.get(j).equals(subsetOperands.get(j)));
}
}
@@ -175,8 +175,8 @@ public class OTFSubSetFileTestCase extends OTFFileTestCase {
List<BytesNumber> subroutine) {
BytesNumber[] charStringOperands = charString.toArray(new BytesNumber[0]);
BytesNumber[] subroutineOperands = subroutine.toArray(new BytesNumber[0]);
BytesNumber[] mergeData = new BytesNumber[charStringOperands.length - 1 +
subroutineOperands.length - 1];
BytesNumber[] mergeData = new BytesNumber[charStringOperands.length - 1
+ subroutineOperands.length - 1];
System.arraycopy(charStringOperands, 0, mergeData, 0, charStringOperands.length - 1);
System.arraycopy(subroutineOperands, 0, mergeData, charStringOperands.length - 1,
subroutineOperands.length - 1);

+ 1
- 1
test/java/org/apache/fop/layoutengine/LayoutEngineTestUtils.java View File

@@ -162,7 +162,7 @@ public final class LayoutEngineTestUtils {
Collection<File[]> parametersForJUnit4 = new ArrayList<File[]>();
int index = 0;
for (File f : files) {
parametersForJUnit4.add(new File[] { f });
parametersForJUnit4.add(new File[] {f});
if (DEBUG) {
System.out.println(String.format("%3d %s", index++, f));
}

+ 1
- 1
test/java/org/apache/fop/pdf/PDFFactoryTestCase.java View File

@@ -53,7 +53,7 @@ public class PDFFactoryTestCase {

@Override
public int[] getWidths() {
return new int[] { 0 };
return new int[] {0};
}

@Override

Loading…
Cancel
Save