From cd237ca578ea94320c0b9289059b72f79f091a29 Mon Sep 17 00:00:00 2001 From: Vincent Hennebert Date: Tue, 11 Feb 2014 10:41:50 +0000 Subject: [PATCH] Checkstyle fixes git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1567039 13f79535-47bb-0310-9956-ffa450edef68 --- .../fop/fonts/truetype/OTFSubSetFileTestCase.java | 12 ++++++------ .../fop/layoutengine/LayoutEngineTestUtils.java | 2 +- test/java/org/apache/fop/pdf/PDFFactoryTestCase.java | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/test/java/org/apache/fop/fonts/truetype/OTFSubSetFileTestCase.java b/test/java/org/apache/fop/fonts/truetype/OTFSubSetFileTestCase.java index 8c92b5f63..fecb1e9f1 100644 --- a/test/java/org/apache/fop/fonts/truetype/OTFSubSetFileTestCase.java +++ b/test/java/org/apache/fop/fonts/truetype/OTFSubSetFileTestCase.java @@ -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 origOperands = getFullCharString(origCharData, origCFF); List 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 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); diff --git a/test/java/org/apache/fop/layoutengine/LayoutEngineTestUtils.java b/test/java/org/apache/fop/layoutengine/LayoutEngineTestUtils.java index fb7f07023..963b66dff 100644 --- a/test/java/org/apache/fop/layoutengine/LayoutEngineTestUtils.java +++ b/test/java/org/apache/fop/layoutengine/LayoutEngineTestUtils.java @@ -162,7 +162,7 @@ public final class LayoutEngineTestUtils { Collection parametersForJUnit4 = new ArrayList(); 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)); } diff --git a/test/java/org/apache/fop/pdf/PDFFactoryTestCase.java b/test/java/org/apache/fop/pdf/PDFFactoryTestCase.java index 5e4b9e2e4..edbc7e449 100644 --- a/test/java/org/apache/fop/pdf/PDFFactoryTestCase.java +++ b/test/java/org/apache/fop/pdf/PDFFactoryTestCase.java @@ -53,7 +53,7 @@ public class PDFFactoryTestCase { @Override public int[] getWidths() { - return new int[] { 0 }; + return new int[] {0}; } @Override -- 2.39.5