From 2ed4c2e0346fe366c48ab12acc987f30c956a784 Mon Sep 17 00:00:00 2001 From: Glenn Adams Date: Sat, 3 Mar 2012 00:18:45 +0000 Subject: [PATCH] enable ImportOrder rule; fix violations git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1296526 13f79535-47bb-0310-9956-ffa450edef68 --- checkstyle-5.5.xml | 4 +--- .../org/apache/fop/afp/fonts/CharacterSet.java | 1 + .../apache/fop/afp/modca/AbstractPageObject.java | 2 +- .../org/apache/fop/afp/ptoca/PtocaBuilder.java | 4 +++- .../apache/fop/afp/svg/AFPTextElementBridge.java | 1 + .../apache/fop/afp/util/DTDEntityResolver.java | 3 ++- src/java/org/apache/fop/area/Area.java | 1 + src/java/org/apache/fop/area/CTM.java | 2 +- src/java/org/apache/fop/area/LineArea.java | 2 +- src/java/org/apache/fop/area/LinkResolver.java | 3 +-- src/java/org/apache/fop/area/MainReference.java | 4 ++-- src/java/org/apache/fop/area/Page.java | 4 ++-- src/java/org/apache/fop/area/PageViewport.java | 6 +++--- src/java/org/apache/fop/area/RegionViewport.java | 4 ++-- src/java/org/apache/fop/area/Trait.java | 2 +- .../org/apache/fop/area/inline/Container.java | 6 +++--- .../apache/fop/area/inline/ForeignObject.java | 4 ++-- .../org/apache/fop/area/inline/InlineParent.java | 2 +- .../fop/complexscripts/bidi/TextInterval.java | 2 +- .../complexscripts/fonts/GlyphClassTable.java | 2 +- .../complexscripts/fonts/GlyphCoverageTable.java | 2 +- .../complexscripts/fonts/GlyphMappingTable.java | 2 +- .../fonts/GlyphPositioningTable.java | 2 +- .../fonts/GlyphProcessingState.java | 2 +- .../fop/complexscripts/fonts/GlyphTable.java | 2 +- .../fop/complexscripts/util/CharScript.java | 2 +- .../org/apache/fop/datatypes/LengthBase.java | 1 + .../org/apache/fop/fo/ValidationException.java | 3 ++- src/java/org/apache/fop/fo/XMLObj.java | 3 +-- .../org/apache/fop/fo/XMLWhiteSpaceHandler.java | 1 + .../fop/fo/expr/FromTableColumnFunction.java | 3 ++- src/java/org/apache/fop/fo/expr/Function.java | 2 +- .../org/apache/fop/fo/expr/LabelEndFunction.java | 2 +- .../org/apache/fop/fo/expr/NumericProperty.java | 2 +- .../org/apache/fop/fo/expr/RGBColorFunction.java | 2 +- .../fop/fo/expr/RelativeNumericProperty.java | 2 +- .../apache/fop/fo/extensions/ExtensionObj.java | 6 +++--- .../svg/BatikExtensionElementMapping.java | 5 ++++- .../fop/fo/extensions/svg/SVGElementMapping.java | 13 ++++++++----- .../extensions/xmp/AbstractMetadataElement.java | 3 ++- .../apache/fop/fo/extensions/xmp/RDFElement.java | 3 ++- .../fop/fo/extensions/xmp/RDFElementMapping.java | 7 ++++--- .../extensions/xmp/XMPContentHandlerFactory.java | 8 +++++--- .../fop/fo/extensions/xmp/XMPElementMapping.java | 7 ++++--- .../fop/fo/extensions/xmp/XMPMetaElement.java | 3 ++- .../fop/fo/extensions/xmp/XMPMetadata.java | 8 +++++--- .../org/apache/fop/fo/flow/BlockContainer.java | 3 ++- .../org/apache/fop/fo/flow/RetrieveMarker.java | 5 +++-- .../apache/fop/fo/flow/RetrieveTableMarker.java | 7 ++++--- .../org/apache/fop/fo/flow/table/TableBody.java | 2 +- .../apache/fop/fo/pagination/ColorProfile.java | 4 ++-- .../fop/fo/pagination/PageSequenceWrapper.java | 2 +- .../apache/fop/fo/pagination/RegionAfter.java | 6 ++---- .../apache/fop/fo/pagination/RegionBefore.java | 4 +--- .../org/apache/fop/fo/pagination/RegionEnd.java | 6 ++---- .../apache/fop/fo/pagination/RegionStart.java | 6 ++---- .../fop/fo/properties/CommonTextDecoration.java | 4 ++-- .../apache/fop/fo/properties/PercentLength.java | 2 +- .../org/apache/fop/fo/properties/Property.java | 2 +- .../apache/fop/fo/properties/PropertyCache.java | 4 ++-- .../apache/fop/fo/properties/URIProperty.java | 6 +++--- .../fop/fonts/FontManagerConfigurator.java | 1 + src/java/org/apache/fop/fonts/LazyFont.java | 4 ++-- src/java/org/apache/fop/fonts/Typeface.java | 1 + .../fop/fonts/apps/AbstractFontReader.java | 1 + .../org/apache/fop/fonts/apps/TTFReader.java | 10 ++++++---- .../fop/fonts/autodetect/FontInfoFinder.java | 1 + .../fop/fonts/substitute/FontQualifier.java | 1 + .../fop/fonts/substitute/FontSubstitutions.java | 1 + .../FontSubstitutionsConfigurator.java | 1 + .../org/apache/fop/fonts/truetype/TTFFile.java | 1 + .../apache/fop/fonts/truetype/TTFFontLoader.java | 4 +++- src/java/org/apache/fop/fonts/type1/PFBData.java | 2 +- .../org/apache/fop/fonts/type1/PFBParser.java | 5 ++--- .../apache/fop/fonts/type1/PFMInputStream.java | 2 +- .../org/apache/fop/hyphenation/Hyphenator.java | 3 ++- .../apache/fop/hyphenation/PatternParser.java | 16 +++++++--------- .../org/apache/fop/hyphenation/TernaryTree.java | 2 +- .../loader/batik/ImageConverterSVG2G2D.java | 5 +++-- .../loader/batik/ImageConverterWMF2G2D.java | 5 +++-- .../fop/image/loader/batik/PreloaderSVG.java | 5 +++-- .../fop/image/loader/batik/PreloaderWMF.java | 5 +++-- .../fop/layoutmgr/AbstractLayoutManager.java | 3 ++- .../org/apache/fop/layoutmgr/KnuthSequence.java | 4 ++-- .../apache/fop/layoutmgr/LayoutException.java | 2 +- .../apache/fop/layoutmgr/LayoutManagerMaker.java | 5 +++-- .../org/apache/fop/layoutmgr/SpaceSpecifier.java | 3 ++- .../UnresolvedListElementWithLength.java | 1 + .../layoutmgr/inline/FootnoteLayoutManager.java | 1 + .../layoutmgr/inline/LeafNodeLayoutManager.java | 3 ++- .../fop/layoutmgr/inline/TextLayoutManager.java | 2 +- .../layoutmgr/inline/WrapperLayoutManager.java | 2 +- .../list/ListItemContentLayoutManager.java | 2 +- .../layoutmgr/table/RowGroupLayoutManager.java | 1 + src/java/org/apache/fop/pdf/ASCII85Filter.java | 2 +- src/java/org/apache/fop/pdf/ASCIIHexFilter.java | 2 +- .../org/apache/fop/pdf/InMemoryStreamCache.java | 2 +- src/java/org/apache/fop/pdf/PDFCharProcs.java | 2 +- src/java/org/apache/fop/pdf/PDFFilter.java | 2 +- src/java/org/apache/fop/pdf/PDFGState.java | 2 +- src/java/org/apache/fop/pdf/PDFInfo.java | 2 +- src/java/org/apache/fop/pdf/PDFPages.java | 3 +-- src/java/org/apache/fop/pdf/PDFPattern.java | 5 ++--- src/java/org/apache/fop/pdf/PDFResources.java | 1 + src/java/org/apache/fop/pdf/StreamCache.java | 2 +- .../org/apache/fop/pdf/TempFileStreamCache.java | 6 ++---- .../apache/fop/render/AbstractConfigurator.java | 2 ++ .../fop/render/XMLHandlerConfigurator.java | 2 ++ .../fop/render/afp/AFPGraphics2DAdapter.java | 3 ++- src/java/org/apache/fop/render/afp/AFPInfo.java | 1 + .../org/apache/fop/render/afp/AFPPainter.java | 8 +++++--- .../fop/render/afp/AFPRendererImageInfo.java | 3 ++- .../extensions/AFPExtensionHandlerFactory.java | 3 ++- .../afp/extensions/AFPPageOverlayElement.java | 7 ++++--- .../apache/fop/render/awt/viewer/Command.java | 4 ++-- .../fop/render/awt/viewer/GoToPageDialog.java | 5 ++--- .../fop/render/awt/viewer/ImageProxyPanel.java | 1 + .../render/awt/viewer/PreviewDialogAboutBox.java | 8 +++----- .../apache/fop/render/awt/viewer/Translator.java | 3 +-- .../fop/render/intermediate/IFRenderer.java | 3 ++- .../render/java2d/InstalledFontCollection.java | 1 + .../java2d/Java2DRendererConfigurator.java | 1 + .../fop/render/java2d/Java2DSVGHandler.java | 5 +++-- .../fop/render/pdf/PDFImageHandlerSVG.java | 5 +++-- .../apache/fop/render/ps/FontResourceCache.java | 3 ++- .../org/apache/fop/render/ps/PSFontUtils.java | 12 +++++++----- .../fop/render/ps/PSGraphics2DAdapter.java | 2 +- .../fop/render/ps/PSImageHandlerGraphics2D.java | 3 ++- .../org/apache/fop/render/ps/PSSVGHandler.java | 1 + .../ps/extensions/AbstractPSExtensionObject.java | 6 +++--- .../ps/extensions/PSExtensionElementMapping.java | 2 +- .../ps/extensions/PSExtensionHandlerFactory.java | 3 ++- .../apache/fop/render/rtf/FOPRtfAttributes.java | 1 + .../apache/fop/render/rtf/FoUnitsConverter.java | 3 ++- .../fop/render/rtf/TableAttributesConverter.java | 2 +- .../fop/render/rtf/rtflib/rtfdoc/RtfAfter.java | 2 +- .../rtf/rtflib/rtfdoc/RtfAfterBeforeBase.java | 2 +- .../fop/render/rtf/rtflib/rtfdoc/RtfBefore.java | 2 +- .../render/rtf/rtflib/rtfdoc/RtfBookmark.java | 2 +- .../rtflib/rtfdoc/RtfBookmarkContainerImpl.java | 2 +- .../render/rtf/rtflib/rtfdoc/RtfColorTable.java | 4 ++-- .../render/rtf/rtflib/rtfdoc/RtfContainer.java | 5 +++-- .../rtf/rtflib/rtfdoc/RtfDocumentArea.java | 2 +- .../fop/render/rtf/rtflib/rtfdoc/RtfElement.java | 3 +-- .../render/rtf/rtflib/rtfdoc/RtfExtraRowSet.java | 8 ++++---- .../fop/render/rtf/rtflib/rtfdoc/RtfFile.java | 7 ++++--- .../render/rtf/rtflib/rtfdoc/RtfFontTable.java | 2 +- .../render/rtf/rtflib/rtfdoc/RtfFootnote.java | 3 +-- .../fop/render/rtf/rtflib/rtfdoc/RtfHeader.java | 7 +++---- .../render/rtf/rtflib/rtfdoc/RtfHyperLink.java | 2 +- .../fop/render/rtf/rtflib/rtfdoc/RtfJforCmd.java | 2 +- .../render/rtf/rtflib/rtfdoc/RtfLineBreak.java | 2 +- .../render/rtf/rtflib/rtfdoc/RtfListItem.java | 2 +- .../render/rtf/rtflib/rtfdoc/RtfListTable.java | 7 +++---- .../fop/render/rtf/rtflib/rtfdoc/RtfNull.java | 2 +- .../render/rtf/rtflib/rtfdoc/RtfPageArea.java | 2 +- .../render/rtf/rtflib/rtfdoc/RtfPageBreak.java | 2 +- .../render/rtf/rtflib/rtfdoc/RtfPageNumber.java | 2 +- .../render/rtf/rtflib/rtfdoc/RtfParagraph.java | 2 +- .../rtflib/rtfdoc/RtfParagraphKeepTogether.java | 2 +- .../fop/render/rtf/rtflib/rtfdoc/RtfSection.java | 2 +- .../rtf/rtflib/rtfdoc/RtfStringConverter.java | 4 ++-- .../rtf/rtflib/rtfdoc/RtfStyleSheetTable.java | 4 ++-- .../render/rtf/rtflib/tools/TableContext.java | 3 ++- .../fop/render/txt/TXTRendererConfigurator.java | 1 + .../org/apache/fop/render/xml/XMLXMLHandler.java | 6 +++--- .../org/apache/fop/servlet/FopPrintServlet.java | 4 ++-- src/java/org/apache/fop/svg/ACIUtils.java | 9 +++++---- .../apache/fop/svg/AbstractFOPTextPainter.java | 5 +++-- .../apache/fop/svg/AbstractFOPTranscoder.java | 6 ++++-- .../org/apache/fop/svg/NativeTextPainter.java | 5 +++-- .../fop/svg/PDFBatikFlowTextElementBridge.java | 1 + .../apache/fop/svg/PDFFlowExtTextPainter.java | 1 + .../org/apache/fop/svg/PDFFlowTextPainter.java | 1 + .../org/apache/fop/svg/PDFGraphicsDevice.java | 4 ++-- .../fop/svg/PDFSVGFlowRootElementBridge.java | 1 + src/java/org/apache/fop/svg/PDFTranscoder.java | 1 + src/java/org/apache/fop/tools/TestConverter.java | 11 ++++++----- .../apache/fop/tools/anttasks/FileCompare.java | 8 ++++---- .../org/apache/fop/tools/anttasks/RunTest.java | 11 ++++------- .../org/apache/fop/util/ColorSpaceCache.java | 2 +- src/java/org/apache/fop/util/LogUtil.java | 1 + .../org/apache/fop/render/mif/MIFHandler.java | 5 +++-- .../org/apache/fop/render/svg/SVGRenderer.java | 7 ++++--- .../org/apache/fop/render/svg/SVGSVGHandler.java | 14 ++++++++------ 185 files changed, 360 insertions(+), 292 deletions(-) diff --git a/checkstyle-5.5.xml b/checkstyle-5.5.xml index fd934eff3..a3acdb549 100644 --- a/checkstyle-5.5.xml +++ b/checkstyle-5.5.xml @@ -121,13 +121,11 @@ - diff --git a/src/java/org/apache/fop/afp/fonts/CharacterSet.java b/src/java/org/apache/fop/afp/fonts/CharacterSet.java index 738028fdf..341abde0b 100644 --- a/src/java/org/apache/fop/afp/fonts/CharacterSet.java +++ b/src/java/org/apache/fop/afp/fonts/CharacterSet.java @@ -26,6 +26,7 @@ import java.util.Map; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; + import org.apache.fop.afp.AFPConstants; import org.apache.fop.afp.AFPEventProducer; import org.apache.fop.afp.fonts.CharactersetEncoder.EncodedChars; diff --git a/src/java/org/apache/fop/afp/modca/AbstractPageObject.java b/src/java/org/apache/fop/afp/modca/AbstractPageObject.java index 99afd322a..e8b8bc1df 100644 --- a/src/java/org/apache/fop/afp/modca/AbstractPageObject.java +++ b/src/java/org/apache/fop/afp/modca/AbstractPageObject.java @@ -27,8 +27,8 @@ import java.util.List; import org.apache.fop.afp.AFPLineDataInfo; import org.apache.fop.afp.Completable; import org.apache.fop.afp.Factory; -import org.apache.fop.afp.ptoca.PtocaProducer; import org.apache.fop.afp.fonts.AFPFont; +import org.apache.fop.afp.ptoca.PtocaProducer; /** * Pages contain the data objects that comprise a presentation document. Each diff --git a/src/java/org/apache/fop/afp/ptoca/PtocaBuilder.java b/src/java/org/apache/fop/afp/ptoca/PtocaBuilder.java index 059753338..1ea63c7f9 100644 --- a/src/java/org/apache/fop/afp/ptoca/PtocaBuilder.java +++ b/src/java/org/apache/fop/afp/ptoca/PtocaBuilder.java @@ -25,11 +25,13 @@ import java.io.IOException; import java.io.OutputStream; import org.apache.commons.io.output.ByteArrayOutputStream; -import org.apache.fop.afp.fonts.CharactersetEncoder.EncodedChars; + import org.apache.xmlgraphics.java2d.color.CIELabColorSpace; import org.apache.xmlgraphics.java2d.color.ColorUtil; import org.apache.xmlgraphics.java2d.color.ColorWithAlternatives; +import org.apache.fop.afp.fonts.CharactersetEncoder.EncodedChars; + /** * Generator class for PTOCA data structures. */ diff --git a/src/java/org/apache/fop/afp/svg/AFPTextElementBridge.java b/src/java/org/apache/fop/afp/svg/AFPTextElementBridge.java index 31aa3fe60..85bb78593 100644 --- a/src/java/org/apache/fop/afp/svg/AFPTextElementBridge.java +++ b/src/java/org/apache/fop/afp/svg/AFPTextElementBridge.java @@ -20,6 +20,7 @@ package org.apache.fop.afp.svg; import org.apache.batik.gvt.TextPainter; + import org.apache.fop.svg.AbstractFOPTextElementBridge; /** diff --git a/src/java/org/apache/fop/afp/util/DTDEntityResolver.java b/src/java/org/apache/fop/afp/util/DTDEntityResolver.java index b4eb7fc23..7ba061993 100644 --- a/src/java/org/apache/fop/afp/util/DTDEntityResolver.java +++ b/src/java/org/apache/fop/afp/util/DTDEntityResolver.java @@ -22,10 +22,11 @@ package org.apache.fop.afp.util; import java.io.IOException; import java.net.URL; -import org.apache.fop.afp.fonts.FontRuntimeException; import org.xml.sax.EntityResolver; import org.xml.sax.InputSource; +import org.apache.fop.afp.fonts.FontRuntimeException; + /** * An entity resolver for both DOM and SAX models of the SAX document. *

diff --git a/src/java/org/apache/fop/area/Area.java b/src/java/org/apache/fop/area/Area.java index 435876d65..bdd886e2c 100644 --- a/src/java/org/apache/fop/area/Area.java +++ b/src/java/org/apache/fop/area/Area.java @@ -24,6 +24,7 @@ import java.util.Map; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; + import org.apache.fop.traits.BorderProps; import org.apache.fop.traits.WritingModeTraitsGetter; diff --git a/src/java/org/apache/fop/area/CTM.java b/src/java/org/apache/fop/area/CTM.java index 4b6adb9dc..3979bce56 100644 --- a/src/java/org/apache/fop/area/CTM.java +++ b/src/java/org/apache/fop/area/CTM.java @@ -29,8 +29,8 @@ import org.apache.fop.traits.WritingMode; import static org.apache.fop.fo.Constants.EN_LR_TB; import static org.apache.fop.fo.Constants.EN_RL_TB; -import static org.apache.fop.fo.Constants.EN_TB_RL; import static org.apache.fop.fo.Constants.EN_TB_LR; +import static org.apache.fop.fo.Constants.EN_TB_RL; /** * Describe a PDF or PostScript style coordinate transformation matrix (CTM). diff --git a/src/java/org/apache/fop/area/LineArea.java b/src/java/org/apache/fop/area/LineArea.java index 1d3262487..ac5322f96 100644 --- a/src/java/org/apache/fop/area/LineArea.java +++ b/src/java/org/apache/fop/area/LineArea.java @@ -26,10 +26,10 @@ import java.util.List; import org.apache.fop.area.inline.InlineArea; -import static org.apache.fop.fo.Constants.EN_START; import static org.apache.fop.fo.Constants.EN_CENTER; import static org.apache.fop.fo.Constants.EN_END; import static org.apache.fop.fo.Constants.EN_JUSTIFY; +import static org.apache.fop.fo.Constants.EN_START; /** * The line area. diff --git a/src/java/org/apache/fop/area/LinkResolver.java b/src/java/org/apache/fop/area/LinkResolver.java index b458a1baf..1c711a18e 100644 --- a/src/java/org/apache/fop/area/LinkResolver.java +++ b/src/java/org/apache/fop/area/LinkResolver.java @@ -19,10 +19,9 @@ package org.apache.fop.area; -// Java +import java.io.Serializable; import java.util.ArrayList; import java.util.List; -import java.io.Serializable; /** * Link resolving for resolving internal links. diff --git a/src/java/org/apache/fop/area/MainReference.java b/src/java/org/apache/fop/area/MainReference.java index 154e9523c..13c92df9c 100644 --- a/src/java/org/apache/fop/area/MainReference.java +++ b/src/java/org/apache/fop/area/MainReference.java @@ -19,11 +19,11 @@ package org.apache.fop.area; -import org.apache.fop.traits.WritingModeTraitsGetter; - import java.util.ArrayList; import java.util.List; +import org.apache.fop.traits.WritingModeTraitsGetter; + /** * The main-reference-area generated by an fo:region-body * This object holds one or more span-reference-areas (block-areas diff --git a/src/java/org/apache/fop/area/Page.java b/src/java/org/apache/fop/area/Page.java index 3a08809dc..9bf670a0e 100644 --- a/src/java/org/apache/fop/area/Page.java +++ b/src/java/org/apache/fop/area/Page.java @@ -35,13 +35,13 @@ import org.apache.fop.fo.properties.CommonMarginBlock; import org.apache.fop.layoutmgr.TraitSetter; import org.apache.fop.traits.WritingModeTraitsGetter; +import static org.apache.fop.fo.Constants.EN_ERROR_IF_OVERFLOW; +import static org.apache.fop.fo.Constants.EN_HIDDEN; import static org.apache.fop.fo.Constants.FO_REGION_AFTER; import static org.apache.fop.fo.Constants.FO_REGION_BEFORE; import static org.apache.fop.fo.Constants.FO_REGION_BODY; import static org.apache.fop.fo.Constants.FO_REGION_END; import static org.apache.fop.fo.Constants.FO_REGION_START; -import static org.apache.fop.fo.Constants.EN_ERROR_IF_OVERFLOW; -import static org.apache.fop.fo.Constants.EN_HIDDEN; /** * The page. diff --git a/src/java/org/apache/fop/area/PageViewport.java b/src/java/org/apache/fop/area/PageViewport.java index f335fa128..9ec46a53d 100644 --- a/src/java/org/apache/fop/area/PageViewport.java +++ b/src/java/org/apache/fop/area/PageViewport.java @@ -36,11 +36,11 @@ import org.apache.fop.fo.flow.Marker; import org.apache.fop.fo.pagination.SimplePageMaster; import org.apache.fop.traits.WritingModeTraitsGetter; -import static org.apache.fop.fo.Constants.FO_REGION_BODY; -import static org.apache.fop.fo.Constants.EN_FSWP; import static org.apache.fop.fo.Constants.EN_FIC; -import static org.apache.fop.fo.Constants.EN_LSWP; +import static org.apache.fop.fo.Constants.EN_FSWP; import static org.apache.fop.fo.Constants.EN_LEWP; +import static org.apache.fop.fo.Constants.EN_LSWP; +import static org.apache.fop.fo.Constants.FO_REGION_BODY; /** * Page viewport that specifies the viewport area and holds the page contents. diff --git a/src/java/org/apache/fop/area/RegionViewport.java b/src/java/org/apache/fop/area/RegionViewport.java index 0104b53ad..7eeadbffd 100644 --- a/src/java/org/apache/fop/area/RegionViewport.java +++ b/src/java/org/apache/fop/area/RegionViewport.java @@ -19,13 +19,13 @@ package org.apache.fop.area; -import org.apache.fop.traits.WritingModeTraitsGetter; - import java.awt.Rectangle; import java.awt.geom.Rectangle2D; import java.io.IOException; import java.util.HashMap; +import org.apache.fop.traits.WritingModeTraitsGetter; + /** * Region Viewport area. * This object represents the region-viewport-area. It has a diff --git a/src/java/org/apache/fop/area/Trait.java b/src/java/org/apache/fop/area/Trait.java index 9942a1370..65320fd48 100644 --- a/src/java/org/apache/fop/area/Trait.java +++ b/src/java/org/apache/fop/area/Trait.java @@ -30,10 +30,10 @@ import org.apache.fop.traits.Direction; import org.apache.fop.traits.WritingMode; import org.apache.fop.util.ColorUtil; +import static org.apache.fop.fo.Constants.EN_NOREPEAT; import static org.apache.fop.fo.Constants.EN_REPEAT; import static org.apache.fop.fo.Constants.EN_REPEATX; import static org.apache.fop.fo.Constants.EN_REPEATY; -import static org.apache.fop.fo.Constants.EN_NOREPEAT; // properties should be serialized by the holder /** diff --git a/src/java/org/apache/fop/area/inline/Container.java b/src/java/org/apache/fop/area/inline/Container.java index 9267b92d0..bc2acaa28 100644 --- a/src/java/org/apache/fop/area/inline/Container.java +++ b/src/java/org/apache/fop/area/inline/Container.java @@ -19,12 +19,12 @@ package org.apache.fop.area.inline; +import java.util.ArrayList; +import java.util.List; + import org.apache.fop.area.Area; import org.apache.fop.area.Block; -import java.util.List; -import java.util.ArrayList; - /** * Container area for inline container. * This area should be placed in a viewport as a result of the diff --git a/src/java/org/apache/fop/area/inline/ForeignObject.java b/src/java/org/apache/fop/area/inline/ForeignObject.java index 3c36b3195..cc0e0b0ad 100644 --- a/src/java/org/apache/fop/area/inline/ForeignObject.java +++ b/src/java/org/apache/fop/area/inline/ForeignObject.java @@ -19,10 +19,10 @@ package org.apache.fop.area.inline; -import org.apache.fop.area.Area; - import org.w3c.dom.Document; +import org.apache.fop.area.Area; + // cacheable object /** * Foreign object inline area. diff --git a/src/java/org/apache/fop/area/inline/InlineParent.java b/src/java/org/apache/fop/area/inline/InlineParent.java index 0e1f32dff..405d71a50 100644 --- a/src/java/org/apache/fop/area/inline/InlineParent.java +++ b/src/java/org/apache/fop/area/inline/InlineParent.java @@ -19,8 +19,8 @@ package org.apache.fop.area.inline; -import java.util.List; import java.util.Iterator; +import java.util.List; import org.apache.fop.area.Area; diff --git a/src/java/org/apache/fop/complexscripts/bidi/TextInterval.java b/src/java/org/apache/fop/complexscripts/bidi/TextInterval.java index 7d4ab105b..8249c4628 100644 --- a/src/java/org/apache/fop/complexscripts/bidi/TextInterval.java +++ b/src/java/org/apache/fop/complexscripts/bidi/TextInterval.java @@ -21,8 +21,8 @@ package org.apache.fop.complexscripts.bidi; import org.apache.fop.fo.FONode; import org.apache.fop.fo.FOText; -import org.apache.fop.fo.flow.AbstractPageNumberCitation; import org.apache.fop.fo.flow.AbstractGraphics; +import org.apache.fop.fo.flow.AbstractPageNumberCitation; import org.apache.fop.fo.flow.BidiOverride; import org.apache.fop.fo.flow.Character; import org.apache.fop.fo.flow.Leader; diff --git a/src/java/org/apache/fop/complexscripts/fonts/GlyphClassTable.java b/src/java/org/apache/fop/complexscripts/fonts/GlyphClassTable.java index 02498af25..71aa206ba 100644 --- a/src/java/org/apache/fop/complexscripts/fonts/GlyphClassTable.java +++ b/src/java/org/apache/fop/complexscripts/fonts/GlyphClassTable.java @@ -19,8 +19,8 @@ package org.apache.fop.complexscripts.fonts; -import java.util.List; import java.util.Iterator; +import java.util.List; // CSOFF: LineLengthCheck // CSOFF: NoWhitespaceAfterCheck diff --git a/src/java/org/apache/fop/complexscripts/fonts/GlyphCoverageTable.java b/src/java/org/apache/fop/complexscripts/fonts/GlyphCoverageTable.java index dea92d8c1..f0e7e50da 100644 --- a/src/java/org/apache/fop/complexscripts/fonts/GlyphCoverageTable.java +++ b/src/java/org/apache/fop/complexscripts/fonts/GlyphCoverageTable.java @@ -20,8 +20,8 @@ package org.apache.fop.complexscripts.fonts; import java.util.Arrays; -import java.util.List; import java.util.Iterator; +import java.util.List; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; diff --git a/src/java/org/apache/fop/complexscripts/fonts/GlyphMappingTable.java b/src/java/org/apache/fop/complexscripts/fonts/GlyphMappingTable.java index e7d67ce6a..6c4b0bf37 100644 --- a/src/java/org/apache/fop/complexscripts/fonts/GlyphMappingTable.java +++ b/src/java/org/apache/fop/complexscripts/fonts/GlyphMappingTable.java @@ -20,8 +20,8 @@ package org.apache.fop.complexscripts.fonts; import java.util.Arrays; -import java.util.List; import java.util.Iterator; +import java.util.List; // CSOFF: NoWhitespaceAfterCheck // CSOFF: InnerAssignmentCheck diff --git a/src/java/org/apache/fop/complexscripts/fonts/GlyphPositioningTable.java b/src/java/org/apache/fop/complexscripts/fonts/GlyphPositioningTable.java index 01f78d2f2..07a0077bf 100644 --- a/src/java/org/apache/fop/complexscripts/fonts/GlyphPositioningTable.java +++ b/src/java/org/apache/fop/complexscripts/fonts/GlyphPositioningTable.java @@ -19,8 +19,8 @@ package org.apache.fop.complexscripts.fonts; -import java.util.Arrays; import java.util.ArrayList; +import java.util.Arrays; import java.util.Iterator; import java.util.List; import java.util.Map; diff --git a/src/java/org/apache/fop/complexscripts/fonts/GlyphProcessingState.java b/src/java/org/apache/fop/complexscripts/fonts/GlyphProcessingState.java index 4b04b1ca9..b40708e11 100644 --- a/src/java/org/apache/fop/complexscripts/fonts/GlyphProcessingState.java +++ b/src/java/org/apache/fop/complexscripts/fonts/GlyphProcessingState.java @@ -23,8 +23,8 @@ import java.nio.IntBuffer; import java.util.ArrayList; import java.util.List; -import org.apache.fop.complexscripts.util.GlyphSequence; import org.apache.fop.complexscripts.util.GlyphContextTester; +import org.apache.fop.complexscripts.util.GlyphSequence; import org.apache.fop.complexscripts.util.GlyphTester; import org.apache.fop.complexscripts.util.ScriptContextTester; diff --git a/src/java/org/apache/fop/complexscripts/fonts/GlyphTable.java b/src/java/org/apache/fop/complexscripts/fonts/GlyphTable.java index 1667e26f1..f95ee8778 100644 --- a/src/java/org/apache/fop/complexscripts/fonts/GlyphTable.java +++ b/src/java/org/apache/fop/complexscripts/fonts/GlyphTable.java @@ -19,8 +19,8 @@ package org.apache.fop.complexscripts.fonts; -import java.util.Arrays; import java.util.ArrayList; +import java.util.Arrays; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.LinkedList; diff --git a/src/java/org/apache/fop/complexscripts/util/CharScript.java b/src/java/org/apache/fop/complexscripts/util/CharScript.java index 06bc02a4f..c0a2f8ee4 100644 --- a/src/java/org/apache/fop/complexscripts/util/CharScript.java +++ b/src/java/org/apache/fop/complexscripts/util/CharScript.java @@ -20,9 +20,9 @@ package org.apache.fop.complexscripts.util; import java.util.Arrays; -import java.util.Iterator; import java.util.HashMap; import java.util.HashSet; +import java.util.Iterator; import java.util.Map; import java.util.Set; diff --git a/src/java/org/apache/fop/datatypes/LengthBase.java b/src/java/org/apache/fop/datatypes/LengthBase.java index 00eaee8c8..b7e51e191 100644 --- a/src/java/org/apache/fop/datatypes/LengthBase.java +++ b/src/java/org/apache/fop/datatypes/LengthBase.java @@ -21,6 +21,7 @@ package org.apache.fop.datatypes; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; + import org.apache.fop.fo.Constants; import org.apache.fop.fo.FObj; import org.apache.fop.fo.PropertyList; diff --git a/src/java/org/apache/fop/fo/ValidationException.java b/src/java/org/apache/fop/fo/ValidationException.java index 2285fbd19..745732863 100644 --- a/src/java/org/apache/fop/fo/ValidationException.java +++ b/src/java/org/apache/fop/fo/ValidationException.java @@ -19,9 +19,10 @@ package org.apache.fop.fo; -import org.apache.fop.apps.FOPException; import org.xml.sax.Locator; +import org.apache.fop.apps.FOPException; + /** * Exception thrown during FO tree validation. */ diff --git a/src/java/org/apache/fop/fo/XMLObj.java b/src/java/org/apache/fop/fo/XMLObj.java index a73eda2e9..5f20fa159 100644 --- a/src/java/org/apache/fop/fo/XMLObj.java +++ b/src/java/org/apache/fop/fo/XMLObj.java @@ -19,7 +19,6 @@ package org.apache.fop.fo; -// Java import java.awt.geom.Point2D; import java.util.HashMap; @@ -33,8 +32,8 @@ import org.xml.sax.Locator; import org.apache.fop.apps.FOPException; import org.apache.fop.datatypes.Length; -import org.apache.fop.util.XMLConstants; import org.apache.fop.util.ContentHandlerFactory.ObjectBuiltListener; +import org.apache.fop.util.XMLConstants; /** * Abstract class modelling generic, non-XSL-FO XML objects. Such objects are diff --git a/src/java/org/apache/fop/fo/XMLWhiteSpaceHandler.java b/src/java/org/apache/fop/fo/XMLWhiteSpaceHandler.java index 51e84551c..bc406cfcd 100644 --- a/src/java/org/apache/fop/fo/XMLWhiteSpaceHandler.java +++ b/src/java/org/apache/fop/fo/XMLWhiteSpaceHandler.java @@ -21,6 +21,7 @@ package org.apache.fop.fo; import java.util.List; import java.util.Stack; + import org.apache.fop.fo.flow.Block; import org.apache.fop.util.CharUtilities; diff --git a/src/java/org/apache/fop/fo/expr/FromTableColumnFunction.java b/src/java/org/apache/fop/fo/expr/FromTableColumnFunction.java index df84939f1..627459cf1 100644 --- a/src/java/org/apache/fop/fo/expr/FromTableColumnFunction.java +++ b/src/java/org/apache/fop/fo/expr/FromTableColumnFunction.java @@ -20,9 +20,10 @@ package org.apache.fop.fo.expr; import java.util.List; + import org.apache.fop.fo.Constants; -import org.apache.fop.fo.FObj; import org.apache.fop.fo.FOPropertyMapping; +import org.apache.fop.fo.FObj; import org.apache.fop.fo.flow.table.ColumnNumberManager; import org.apache.fop.fo.flow.table.Table; import org.apache.fop.fo.flow.table.TableCell; diff --git a/src/java/org/apache/fop/fo/expr/Function.java b/src/java/org/apache/fop/fo/expr/Function.java index 78e40fad2..82ec1b7fd 100644 --- a/src/java/org/apache/fop/fo/expr/Function.java +++ b/src/java/org/apache/fop/fo/expr/Function.java @@ -19,8 +19,8 @@ package org.apache.fop.fo.expr; -import org.apache.fop.fo.properties.Property; import org.apache.fop.datatypes.PercentBase; +import org.apache.fop.fo.properties.Property; /** * Interface for managing XSL-FO Functions diff --git a/src/java/org/apache/fop/fo/expr/LabelEndFunction.java b/src/java/org/apache/fop/fo/expr/LabelEndFunction.java index 65be6cf9f..5deb3ae30 100644 --- a/src/java/org/apache/fop/fo/expr/LabelEndFunction.java +++ b/src/java/org/apache/fop/fo/expr/LabelEndFunction.java @@ -19,9 +19,9 @@ package org.apache.fop.fo.expr; -import org.apache.fop.datatypes.Numeric; import org.apache.fop.datatypes.Length; import org.apache.fop.datatypes.LengthBase; +import org.apache.fop.datatypes.Numeric; import org.apache.fop.fo.Constants; import org.apache.fop.fo.PropertyList; import org.apache.fop.fo.flow.ListItem; diff --git a/src/java/org/apache/fop/fo/expr/NumericProperty.java b/src/java/org/apache/fop/fo/expr/NumericProperty.java index f80e1f5a5..81e4220ae 100644 --- a/src/java/org/apache/fop/fo/expr/NumericProperty.java +++ b/src/java/org/apache/fop/fo/expr/NumericProperty.java @@ -23,8 +23,8 @@ import java.awt.Color; import org.apache.fop.apps.FOUserAgent; import org.apache.fop.datatypes.Length; -import org.apache.fop.datatypes.PercentBaseContext; import org.apache.fop.datatypes.Numeric; +import org.apache.fop.datatypes.PercentBaseContext; import org.apache.fop.fo.properties.FixedLength; import org.apache.fop.fo.properties.Property; diff --git a/src/java/org/apache/fop/fo/expr/RGBColorFunction.java b/src/java/org/apache/fop/fo/expr/RGBColorFunction.java index 1c7a91503..868b9a8bf 100644 --- a/src/java/org/apache/fop/fo/expr/RGBColorFunction.java +++ b/src/java/org/apache/fop/fo/expr/RGBColorFunction.java @@ -19,8 +19,8 @@ package org.apache.fop.fo.expr; -import org.apache.fop.datatypes.PercentBaseContext; import org.apache.fop.datatypes.PercentBase; +import org.apache.fop.datatypes.PercentBaseContext; import org.apache.fop.fo.properties.ColorProperty; import org.apache.fop.fo.properties.Property; diff --git a/src/java/org/apache/fop/fo/expr/RelativeNumericProperty.java b/src/java/org/apache/fop/fo/expr/RelativeNumericProperty.java index 10fde01b6..a869b75c8 100644 --- a/src/java/org/apache/fop/fo/expr/RelativeNumericProperty.java +++ b/src/java/org/apache/fop/fo/expr/RelativeNumericProperty.java @@ -20,8 +20,8 @@ package org.apache.fop.fo.expr; import org.apache.fop.datatypes.Length; -import org.apache.fop.datatypes.PercentBaseContext; import org.apache.fop.datatypes.Numeric; +import org.apache.fop.datatypes.PercentBaseContext; import org.apache.fop.fo.properties.Property; import org.apache.fop.fo.properties.TableColLength; diff --git a/src/java/org/apache/fop/fo/extensions/ExtensionObj.java b/src/java/org/apache/fop/fo/extensions/ExtensionObj.java index 4329f1a7e..c35dcfc73 100644 --- a/src/java/org/apache/fop/fo/extensions/ExtensionObj.java +++ b/src/java/org/apache/fop/fo/extensions/ExtensionObj.java @@ -19,14 +19,14 @@ package org.apache.fop.fo.extensions; +import org.xml.sax.Attributes; +import org.xml.sax.Locator; + import org.apache.fop.apps.FOPException; import org.apache.fop.fo.FOEventHandler; import org.apache.fop.fo.FONode; import org.apache.fop.fo.FObj; import org.apache.fop.fo.PropertyList; -import org.xml.sax.Attributes; -import org.xml.sax.Locator; - /** * Base class for pdf bookmark extension objects. diff --git a/src/java/org/apache/fop/fo/extensions/svg/BatikExtensionElementMapping.java b/src/java/org/apache/fop/fo/extensions/svg/BatikExtensionElementMapping.java index 6103345cf..7f8da1063 100644 --- a/src/java/org/apache/fop/fo/extensions/svg/BatikExtensionElementMapping.java +++ b/src/java/org/apache/fop/fo/extensions/svg/BatikExtensionElementMapping.java @@ -20,12 +20,15 @@ package org.apache.fop.fo.extensions.svg; import java.util.HashMap; + import javax.xml.parsers.SAXParserFactory; +import org.w3c.dom.DOMImplementation; + import org.apache.batik.util.XMLResourceDescriptor; + import org.apache.fop.fo.ElementMapping; import org.apache.fop.fo.FONode; -import org.w3c.dom.DOMImplementation; /** * This Element Mapping is for Batik SVG Extension elements diff --git a/src/java/org/apache/fop/fo/extensions/svg/SVGElementMapping.java b/src/java/org/apache/fop/fo/extensions/svg/SVGElementMapping.java index 7120dbb59..0e46076cd 100644 --- a/src/java/org/apache/fop/fo/extensions/svg/SVGElementMapping.java +++ b/src/java/org/apache/fop/fo/extensions/svg/SVGElementMapping.java @@ -20,16 +20,19 @@ package org.apache.fop.fo.extensions.svg; import java.util.HashMap; + import javax.xml.parsers.SAXParserFactory; -import org.apache.fop.fo.FONode; -import org.apache.fop.fo.ElementMapping; +import org.w3c.dom.DOMImplementation; -import org.apache.batik.util.XMLResourceDescriptor; -import org.apache.batik.dom.svg.SVGDOMImplementation; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; -import org.w3c.dom.DOMImplementation; + +import org.apache.batik.dom.svg.SVGDOMImplementation; +import org.apache.batik.util.XMLResourceDescriptor; + +import org.apache.fop.fo.ElementMapping; +import org.apache.fop.fo.FONode; /** * Setup the SVG element mapping. diff --git a/src/java/org/apache/fop/fo/extensions/xmp/AbstractMetadataElement.java b/src/java/org/apache/fop/fo/extensions/xmp/AbstractMetadataElement.java index f4b770bbe..8004be01b 100644 --- a/src/java/org/apache/fop/fo/extensions/xmp/AbstractMetadataElement.java +++ b/src/java/org/apache/fop/fo/extensions/xmp/AbstractMetadataElement.java @@ -19,12 +19,13 @@ package org.apache.fop.fo.extensions.xmp; +import org.apache.xmlgraphics.xmp.Metadata; + import org.apache.fop.fo.FONode; import org.apache.fop.fo.FObj; import org.apache.fop.fo.extensions.ExtensionAttachment; import org.apache.fop.util.ContentHandlerFactory; import org.apache.fop.util.ContentHandlerFactory.ObjectBuiltListener; -import org.apache.xmlgraphics.xmp.Metadata; /** * Abstract base class for the XMP and RDF root nodes. diff --git a/src/java/org/apache/fop/fo/extensions/xmp/RDFElement.java b/src/java/org/apache/fop/fo/extensions/xmp/RDFElement.java index cf1c40c4a..094e1ab5c 100644 --- a/src/java/org/apache/fop/fo/extensions/xmp/RDFElement.java +++ b/src/java/org/apache/fop/fo/extensions/xmp/RDFElement.java @@ -19,9 +19,10 @@ package org.apache.fop.fo.extensions.xmp; -import org.apache.fop.fo.FONode; import org.apache.xmlgraphics.xmp.XMPConstants; +import org.apache.fop.fo.FONode; + /** * Represents the top-level "RDF" element used by XMP metadata. */ diff --git a/src/java/org/apache/fop/fo/extensions/xmp/RDFElementMapping.java b/src/java/org/apache/fop/fo/extensions/xmp/RDFElementMapping.java index a6befd710..027a35a32 100644 --- a/src/java/org/apache/fop/fo/extensions/xmp/RDFElementMapping.java +++ b/src/java/org/apache/fop/fo/extensions/xmp/RDFElementMapping.java @@ -21,11 +21,12 @@ package org.apache.fop.fo.extensions.xmp; import java.util.HashMap; -import org.apache.fop.fo.FONode; -import org.apache.fop.fo.ElementMapping; +import org.w3c.dom.DOMImplementation; + import org.apache.xmlgraphics.xmp.XMPConstants; -import org.w3c.dom.DOMImplementation; +import org.apache.fop.fo.ElementMapping; +import org.apache.fop.fo.FONode; /** * Setup the element mapping for XMP metadata. diff --git a/src/java/org/apache/fop/fo/extensions/xmp/XMPContentHandlerFactory.java b/src/java/org/apache/fop/fo/extensions/xmp/XMPContentHandlerFactory.java index 02a74b86d..fd64f1a98 100644 --- a/src/java/org/apache/fop/fo/extensions/xmp/XMPContentHandlerFactory.java +++ b/src/java/org/apache/fop/fo/extensions/xmp/XMPContentHandlerFactory.java @@ -19,12 +19,14 @@ package org.apache.fop.fo.extensions.xmp; -import org.apache.fop.util.ContentHandlerFactory; -import org.apache.xmlgraphics.xmp.XMPConstants; -import org.apache.xmlgraphics.xmp.XMPHandler; import org.xml.sax.ContentHandler; import org.xml.sax.SAXException; +import org.apache.xmlgraphics.xmp.XMPConstants; +import org.apache.xmlgraphics.xmp.XMPHandler; + +import org.apache.fop.util.ContentHandlerFactory; + /** * ContentHandlerFactory for the XMP root element. */ diff --git a/src/java/org/apache/fop/fo/extensions/xmp/XMPElementMapping.java b/src/java/org/apache/fop/fo/extensions/xmp/XMPElementMapping.java index d934dc2b1..bdcadc780 100644 --- a/src/java/org/apache/fop/fo/extensions/xmp/XMPElementMapping.java +++ b/src/java/org/apache/fop/fo/extensions/xmp/XMPElementMapping.java @@ -21,11 +21,12 @@ package org.apache.fop.fo.extensions.xmp; import java.util.HashMap; -import org.apache.fop.fo.FONode; -import org.apache.fop.fo.ElementMapping; +import org.w3c.dom.DOMImplementation; + import org.apache.xmlgraphics.xmp.XMPConstants; -import org.w3c.dom.DOMImplementation; +import org.apache.fop.fo.ElementMapping; +import org.apache.fop.fo.FONode; /** * Setup the element mapping for XMP metadata. diff --git a/src/java/org/apache/fop/fo/extensions/xmp/XMPMetaElement.java b/src/java/org/apache/fop/fo/extensions/xmp/XMPMetaElement.java index f99ccd2aa..f61c59d64 100644 --- a/src/java/org/apache/fop/fo/extensions/xmp/XMPMetaElement.java +++ b/src/java/org/apache/fop/fo/extensions/xmp/XMPMetaElement.java @@ -19,9 +19,10 @@ package org.apache.fop.fo.extensions.xmp; -import org.apache.fop.fo.FONode; import org.apache.xmlgraphics.xmp.XMPConstants; +import org.apache.fop.fo.FONode; + /** * Represents the top-level "xmpmeta" element used by XMP metadata. */ diff --git a/src/java/org/apache/fop/fo/extensions/xmp/XMPMetadata.java b/src/java/org/apache/fop/fo/extensions/xmp/XMPMetadata.java index 6dcc31385..af8231448 100644 --- a/src/java/org/apache/fop/fo/extensions/xmp/XMPMetadata.java +++ b/src/java/org/apache/fop/fo/extensions/xmp/XMPMetadata.java @@ -21,12 +21,14 @@ package org.apache.fop.fo.extensions.xmp; import java.io.Serializable; -import org.apache.fop.fo.extensions.ExtensionAttachment; +import org.xml.sax.ContentHandler; +import org.xml.sax.SAXException; + import org.apache.xmlgraphics.util.XMLizable; import org.apache.xmlgraphics.xmp.Metadata; import org.apache.xmlgraphics.xmp.XMPConstants; -import org.xml.sax.ContentHandler; -import org.xml.sax.SAXException; + +import org.apache.fop.fo.extensions.ExtensionAttachment; /** * This is the pass-through value object for the XMP metadata extension. diff --git a/src/java/org/apache/fop/fo/flow/BlockContainer.java b/src/java/org/apache/fop/fo/flow/BlockContainer.java index 1dc43fd36..cdeb99081 100644 --- a/src/java/org/apache/fop/fo/flow/BlockContainer.java +++ b/src/java/org/apache/fop/fo/flow/BlockContainer.java @@ -19,6 +19,8 @@ package org.apache.fop.fo.flow; +import org.xml.sax.Locator; + import org.apache.fop.apps.FOPException; import org.apache.fop.datatypes.Numeric; import org.apache.fop.fo.FONode; @@ -35,7 +37,6 @@ import org.apache.fop.traits.Direction; import org.apache.fop.traits.WritingMode; import org.apache.fop.traits.WritingModeTraits; import org.apache.fop.traits.WritingModeTraitsGetter; -import org.xml.sax.Locator; /** * Class modelling the diff --git a/src/java/org/apache/fop/fo/flow/RetrieveMarker.java b/src/java/org/apache/fop/fo/flow/RetrieveMarker.java index 0d0331359..6e1cb0a6e 100644 --- a/src/java/org/apache/fop/fo/flow/RetrieveMarker.java +++ b/src/java/org/apache/fop/fo/flow/RetrieveMarker.java @@ -19,11 +19,12 @@ package org.apache.fop.fo.flow; +import org.xml.sax.Attributes; +import org.xml.sax.Locator; + import org.apache.fop.apps.FOPException; import org.apache.fop.fo.FONode; import org.apache.fop.fo.PropertyList; -import org.xml.sax.Locator; -import org.xml.sax.Attributes; /** * Class modelling the diff --git a/src/java/org/apache/fop/fo/flow/RetrieveTableMarker.java b/src/java/org/apache/fop/fo/flow/RetrieveTableMarker.java index 3fe977b21..3090cb702 100644 --- a/src/java/org/apache/fop/fo/flow/RetrieveTableMarker.java +++ b/src/java/org/apache/fop/fo/flow/RetrieveTableMarker.java @@ -19,11 +19,12 @@ package org.apache.fop.fo.flow; +import org.xml.sax.Attributes; +import org.xml.sax.Locator; + +import org.apache.fop.apps.FOPException; import org.apache.fop.fo.FONode; import org.apache.fop.fo.PropertyList; -import org.apache.fop.apps.FOPException; -import org.xml.sax.Locator; -import org.xml.sax.Attributes; /** * Class modelling the diff --git a/src/java/org/apache/fop/fo/flow/table/TableBody.java b/src/java/org/apache/fop/fo/flow/table/TableBody.java index 0b42fd837..d69081e48 100644 --- a/src/java/org/apache/fop/fo/flow/table/TableBody.java +++ b/src/java/org/apache/fop/fo/flow/table/TableBody.java @@ -19,8 +19,8 @@ package org.apache.fop.fo.flow.table; -import org.apache.fop.fo.FONode; import org.apache.fop.apps.FOPException; +import org.apache.fop.fo.FONode; /** * Class modelling the diff --git a/src/java/org/apache/fop/fo/pagination/ColorProfile.java b/src/java/org/apache/fop/fo/pagination/ColorProfile.java index 7fac8655e..e1ca99ff9 100644 --- a/src/java/org/apache/fop/fo/pagination/ColorProfile.java +++ b/src/java/org/apache/fop/fo/pagination/ColorProfile.java @@ -19,14 +19,14 @@ package org.apache.fop.fo.pagination; +import org.xml.sax.Locator; + import org.apache.fop.apps.FOPException; import org.apache.fop.fo.FONode; import org.apache.fop.fo.FObj; import org.apache.fop.fo.PropertyList; import org.apache.fop.fo.ValidationException; -import org.xml.sax.Locator; - /** * Class modelling the * fo:color-profile object. diff --git a/src/java/org/apache/fop/fo/pagination/PageSequenceWrapper.java b/src/java/org/apache/fop/fo/pagination/PageSequenceWrapper.java index 247384770..f3f362b10 100644 --- a/src/java/org/apache/fop/fo/pagination/PageSequenceWrapper.java +++ b/src/java/org/apache/fop/fo/pagination/PageSequenceWrapper.java @@ -22,8 +22,8 @@ package org.apache.fop.fo.pagination; import org.xml.sax.Locator; import org.apache.fop.apps.FOPException; -import org.apache.fop.fo.FObj; import org.apache.fop.fo.FONode; +import org.apache.fop.fo.FObj; import org.apache.fop.fo.PropertyList; import org.apache.fop.fo.ValidationException; diff --git a/src/java/org/apache/fop/fo/pagination/RegionAfter.java b/src/java/org/apache/fop/fo/pagination/RegionAfter.java index da7ef812a..9c4e2fd3a 100644 --- a/src/java/org/apache/fop/fo/pagination/RegionAfter.java +++ b/src/java/org/apache/fop/fo/pagination/RegionAfter.java @@ -19,15 +19,13 @@ package org.apache.fop.fo.pagination; -// Java import java.awt.Rectangle; -// FOP -import org.apache.fop.fo.Constants; -import org.apache.fop.fo.FONode; import org.apache.fop.datatypes.FODimension; import org.apache.fop.datatypes.LengthBase; import org.apache.fop.datatypes.PercentBaseContext; +import org.apache.fop.fo.Constants; +import org.apache.fop.fo.FONode; /** * Class modelling the diff --git a/src/java/org/apache/fop/fo/pagination/RegionBefore.java b/src/java/org/apache/fop/fo/pagination/RegionBefore.java index 7d285f3d7..eddd290a9 100644 --- a/src/java/org/apache/fop/fo/pagination/RegionBefore.java +++ b/src/java/org/apache/fop/fo/pagination/RegionBefore.java @@ -19,14 +19,12 @@ package org.apache.fop.fo.pagination; -// Java import java.awt.Rectangle; -// FOP -import org.apache.fop.fo.Constants; import org.apache.fop.datatypes.FODimension; import org.apache.fop.datatypes.LengthBase; import org.apache.fop.datatypes.PercentBaseContext; +import org.apache.fop.fo.Constants; import org.apache.fop.fo.FONode; /** diff --git a/src/java/org/apache/fop/fo/pagination/RegionEnd.java b/src/java/org/apache/fop/fo/pagination/RegionEnd.java index a0daf1776..535524c37 100644 --- a/src/java/org/apache/fop/fo/pagination/RegionEnd.java +++ b/src/java/org/apache/fop/fo/pagination/RegionEnd.java @@ -19,15 +19,13 @@ package org.apache.fop.fo.pagination; -// Java import java.awt.Rectangle; -// FOP -import org.apache.fop.fo.Constants; -import org.apache.fop.fo.FONode; import org.apache.fop.datatypes.FODimension; import org.apache.fop.datatypes.LengthBase; import org.apache.fop.datatypes.PercentBaseContext; +import org.apache.fop.fo.Constants; +import org.apache.fop.fo.FONode; /** * Class modelling the diff --git a/src/java/org/apache/fop/fo/pagination/RegionStart.java b/src/java/org/apache/fop/fo/pagination/RegionStart.java index afb9ff1a7..3371a934e 100644 --- a/src/java/org/apache/fop/fo/pagination/RegionStart.java +++ b/src/java/org/apache/fop/fo/pagination/RegionStart.java @@ -19,15 +19,13 @@ package org.apache.fop.fo.pagination; -// Java import java.awt.Rectangle; -// FOP -import org.apache.fop.fo.Constants; -import org.apache.fop.fo.FONode; import org.apache.fop.datatypes.FODimension; import org.apache.fop.datatypes.LengthBase; import org.apache.fop.datatypes.PercentBaseContext; +import org.apache.fop.fo.Constants; +import org.apache.fop.fo.FONode; /** * Class modelling the diff --git a/src/java/org/apache/fop/fo/properties/CommonTextDecoration.java b/src/java/org/apache/fop/fo/properties/CommonTextDecoration.java index f7c11578d..8ef62ced0 100644 --- a/src/java/org/apache/fop/fo/properties/CommonTextDecoration.java +++ b/src/java/org/apache/fop/fo/properties/CommonTextDecoration.java @@ -19,11 +19,11 @@ package org.apache.fop.fo.properties; +import java.awt.Color; + import java.util.Iterator; import java.util.List; -import java.awt.Color; - import org.apache.fop.apps.FOUserAgent; import org.apache.fop.fo.Constants; import org.apache.fop.fo.PropertyList; diff --git a/src/java/org/apache/fop/fo/properties/PercentLength.java b/src/java/org/apache/fop/fo/properties/PercentLength.java index 66f1f175c..4e83fb919 100644 --- a/src/java/org/apache/fop/fo/properties/PercentLength.java +++ b/src/java/org/apache/fop/fo/properties/PercentLength.java @@ -19,8 +19,8 @@ package org.apache.fop.fo.properties; -import org.apache.fop.datatypes.PercentBaseContext; import org.apache.fop.datatypes.PercentBase; +import org.apache.fop.datatypes.PercentBaseContext; import org.apache.fop.fo.expr.PropertyException; /** diff --git a/src/java/org/apache/fop/fo/properties/Property.java b/src/java/org/apache/fop/fo/properties/Property.java index a04f96a3c..e5ee87bd6 100644 --- a/src/java/org/apache/fop/fo/properties/Property.java +++ b/src/java/org/apache/fop/fo/properties/Property.java @@ -19,8 +19,8 @@ package org.apache.fop.fo.properties; -import java.util.List; import java.awt.Color; +import java.util.List; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; diff --git a/src/java/org/apache/fop/fo/properties/PropertyCache.java b/src/java/org/apache/fop/fo/properties/PropertyCache.java index 8bd1d847f..cb11cf6fa 100644 --- a/src/java/org/apache/fop/fo/properties/PropertyCache.java +++ b/src/java/org/apache/fop/fo/properties/PropertyCache.java @@ -19,11 +19,11 @@ package org.apache.fop.fo.properties; -import org.apache.fop.fo.flow.Marker; - import java.lang.ref.ReferenceQueue; import java.lang.ref.WeakReference; +import org.apache.fop.fo.flow.Marker; + /** * Dedicated cache, meant for storing canonical instances * of property-related classes. diff --git a/src/java/org/apache/fop/fo/properties/URIProperty.java b/src/java/org/apache/fop/fo/properties/URIProperty.java index 6465fafdb..60c3a2067 100644 --- a/src/java/org/apache/fop/fo/properties/URIProperty.java +++ b/src/java/org/apache/fop/fo/properties/URIProperty.java @@ -19,14 +19,14 @@ package org.apache.fop.fo.properties; +import java.net.URI; +import java.net.URISyntaxException; + import org.apache.fop.datatypes.URISpecification; import org.apache.fop.fo.FObj; import org.apache.fop.fo.PropertyList; import org.apache.fop.fo.expr.PropertyException; -import java.net.URI; -import java.net.URISyntaxException; - import static org.apache.fop.fo.Constants.PR_X_XML_BASE; /** diff --git a/src/java/org/apache/fop/fonts/FontManagerConfigurator.java b/src/java/org/apache/fop/fonts/FontManagerConfigurator.java index 40e163d42..1a900fe2f 100644 --- a/src/java/org/apache/fop/fonts/FontManagerConfigurator.java +++ b/src/java/org/apache/fop/fonts/FontManagerConfigurator.java @@ -29,6 +29,7 @@ import org.apache.avalon.framework.configuration.Configuration; import org.apache.avalon.framework.configuration.ConfigurationException; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; + import org.apache.fop.apps.FOPException; import org.apache.fop.fonts.substitute.FontSubstitutions; import org.apache.fop.fonts.substitute.FontSubstitutionsConfigurator; diff --git a/src/java/org/apache/fop/fonts/LazyFont.java b/src/java/org/apache/fop/fonts/LazyFont.java index dfd2367b2..7474c17f1 100644 --- a/src/java/org/apache/fop/fonts/LazyFont.java +++ b/src/java/org/apache/fop/fonts/LazyFont.java @@ -27,6 +27,8 @@ import java.util.Set; import javax.xml.transform.Source; import javax.xml.transform.stream.StreamSource; +import org.xml.sax.InputSource; + import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -35,8 +37,6 @@ import org.apache.fop.complexscripts.fonts.Positionable; import org.apache.fop.complexscripts.fonts.Substitutable; -import org.xml.sax.InputSource; - /** * This class is used to defer the loading of a font until it is really used. */ diff --git a/src/java/org/apache/fop/fonts/Typeface.java b/src/java/org/apache/fop/fonts/Typeface.java index e933781cd..0e3844077 100644 --- a/src/java/org/apache/fop/fonts/Typeface.java +++ b/src/java/org/apache/fop/fonts/Typeface.java @@ -24,6 +24,7 @@ import java.util.Set; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; + import org.apache.xmlgraphics.fonts.Glyphs; /** diff --git a/src/java/org/apache/fop/fonts/apps/AbstractFontReader.java b/src/java/org/apache/fop/fonts/apps/AbstractFontReader.java index 89c7890af..39f7e14a4 100644 --- a/src/java/org/apache/fop/fonts/apps/AbstractFontReader.java +++ b/src/java/org/apache/fop/fonts/apps/AbstractFontReader.java @@ -31,6 +31,7 @@ import javax.xml.transform.TransformerFactory; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; + import org.apache.fop.util.CommandLineLogger; /** diff --git a/src/java/org/apache/fop/fonts/apps/TTFReader.java b/src/java/org/apache/fop/fonts/apps/TTFReader.java index 7159a60b7..6acb490c2 100644 --- a/src/java/org/apache/fop/fonts/apps/TTFReader.java +++ b/src/java/org/apache/fop/fonts/apps/TTFReader.java @@ -26,17 +26,19 @@ import java.util.Set; import javax.xml.parsers.DocumentBuilderFactory; +import org.w3c.dom.Document; +import org.w3c.dom.Element; +import org.xml.sax.Attributes; +import org.xml.sax.SAXException; + import org.apache.commons.logging.LogFactory; + import org.apache.fop.Version; import org.apache.fop.fonts.FontUtil; import org.apache.fop.fonts.truetype.FontFileReader; import org.apache.fop.fonts.truetype.TTFCmapEntry; import org.apache.fop.fonts.truetype.TTFFile; import org.apache.fop.util.CommandLineLogger; -import org.w3c.dom.Document; -import org.w3c.dom.Element; -import org.xml.sax.Attributes; -import org.xml.sax.SAXException; // CSOFF: InnerAssignmentCheck // CSOFF: LineLengthCheck diff --git a/src/java/org/apache/fop/fonts/autodetect/FontInfoFinder.java b/src/java/org/apache/fop/fonts/autodetect/FontInfoFinder.java index bf6f493cf..bd0a33cb1 100644 --- a/src/java/org/apache/fop/fonts/autodetect/FontInfoFinder.java +++ b/src/java/org/apache/fop/fonts/autodetect/FontInfoFinder.java @@ -29,6 +29,7 @@ import java.util.regex.Pattern; import org.apache.commons.io.IOUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; + import org.apache.fop.fonts.CustomFont; import org.apache.fop.fonts.EmbedFontInfo; import org.apache.fop.fonts.EncodingMode; diff --git a/src/java/org/apache/fop/fonts/substitute/FontQualifier.java b/src/java/org/apache/fop/fonts/substitute/FontQualifier.java index 3419ab2c7..c1b6a93cd 100644 --- a/src/java/org/apache/fop/fonts/substitute/FontQualifier.java +++ b/src/java/org/apache/fop/fonts/substitute/FontQualifier.java @@ -26,6 +26,7 @@ import java.util.Set; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; + import org.apache.fop.fonts.Font; import org.apache.fop.fonts.FontInfo; import org.apache.fop.fonts.FontTriplet; diff --git a/src/java/org/apache/fop/fonts/substitute/FontSubstitutions.java b/src/java/org/apache/fop/fonts/substitute/FontSubstitutions.java index e018bb2c2..e96459577 100644 --- a/src/java/org/apache/fop/fonts/substitute/FontSubstitutions.java +++ b/src/java/org/apache/fop/fonts/substitute/FontSubstitutions.java @@ -24,6 +24,7 @@ import java.util.List; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; + import org.apache.fop.fonts.FontInfo; import org.apache.fop.fonts.FontTriplet; diff --git a/src/java/org/apache/fop/fonts/substitute/FontSubstitutionsConfigurator.java b/src/java/org/apache/fop/fonts/substitute/FontSubstitutionsConfigurator.java index 0c6c0db0e..75e6497ee 100644 --- a/src/java/org/apache/fop/fonts/substitute/FontSubstitutionsConfigurator.java +++ b/src/java/org/apache/fop/fonts/substitute/FontSubstitutionsConfigurator.java @@ -20,6 +20,7 @@ package org.apache.fop.fonts.substitute; import org.apache.avalon.framework.configuration.Configuration; + import org.apache.fop.apps.FOPException; /** diff --git a/src/java/org/apache/fop/fonts/truetype/TTFFile.java b/src/java/org/apache/fop/fonts/truetype/TTFFile.java index 33d608540..bcbd73a6f 100644 --- a/src/java/org/apache/fop/fonts/truetype/TTFFile.java +++ b/src/java/org/apache/fop/fonts/truetype/TTFFile.java @@ -28,6 +28,7 @@ import java.util.Set; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; + import org.apache.xmlgraphics.fonts.Glyphs; import org.apache.fop.complexscripts.fonts.AdvancedTypographicTableFormatException; diff --git a/src/java/org/apache/fop/fonts/truetype/TTFFontLoader.java b/src/java/org/apache/fop/fonts/truetype/TTFFontLoader.java index 54324be52..c03f0fb6a 100644 --- a/src/java/org/apache/fop/fonts/truetype/TTFFontLoader.java +++ b/src/java/org/apache/fop/fonts/truetype/TTFFontLoader.java @@ -27,6 +27,9 @@ import java.util.Map; import java.util.Set; import org.apache.commons.io.IOUtils; + +import org.apache.xmlgraphics.fonts.Glyphs; + import org.apache.fop.fonts.BFEntry; import org.apache.fop.fonts.CIDFontType; import org.apache.fop.fonts.EncodingMode; @@ -36,7 +39,6 @@ import org.apache.fop.fonts.FontType; import org.apache.fop.fonts.MultiByteFont; import org.apache.fop.fonts.NamedCharacter; import org.apache.fop.fonts.SingleByteFont; -import org.apache.xmlgraphics.fonts.Glyphs; /** * Loads a TrueType font into memory directly from the original font file. diff --git a/src/java/org/apache/fop/fonts/type1/PFBData.java b/src/java/org/apache/fop/fonts/type1/PFBData.java index 157dc8066..abccfbb8d 100644 --- a/src/java/org/apache/fop/fonts/type1/PFBData.java +++ b/src/java/org/apache/fop/fonts/type1/PFBData.java @@ -19,8 +19,8 @@ package org.apache.fop.fonts.type1; -import java.io.OutputStream; import java.io.IOException; +import java.io.OutputStream; /** * Class that represents the contents of a PFB file. diff --git a/src/java/org/apache/fop/fonts/type1/PFBParser.java b/src/java/org/apache/fop/fonts/type1/PFBParser.java index 8cb90b146..f6dfe53ef 100644 --- a/src/java/org/apache/fop/fonts/type1/PFBParser.java +++ b/src/java/org/apache/fop/fonts/type1/PFBParser.java @@ -19,12 +19,11 @@ package org.apache.fop.fonts.type1; +import java.io.BufferedInputStream; +import java.io.DataInputStream; import java.io.IOException; import java.io.InputStream; -import java.io.DataInputStream; -import java.io.BufferedInputStream; -//Commons import org.apache.commons.io.IOUtils; /** diff --git a/src/java/org/apache/fop/fonts/type1/PFMInputStream.java b/src/java/org/apache/fop/fonts/type1/PFMInputStream.java index f563059c3..e8f0cb705 100644 --- a/src/java/org/apache/fop/fonts/type1/PFMInputStream.java +++ b/src/java/org/apache/fop/fonts/type1/PFMInputStream.java @@ -19,10 +19,10 @@ package org.apache.fop.fonts.type1; +import java.io.DataInputStream; import java.io.EOFException; import java.io.IOException; import java.io.InputStream; -import java.io.DataInputStream; import java.io.InputStreamReader; /** diff --git a/src/java/org/apache/fop/hyphenation/Hyphenator.java b/src/java/org/apache/fop/hyphenation/Hyphenator.java index 455520b09..ba52e2baf 100644 --- a/src/java/org/apache/fop/hyphenation/Hyphenator.java +++ b/src/java/org/apache/fop/hyphenation/Hyphenator.java @@ -29,10 +29,11 @@ import java.util.Map; import javax.xml.transform.Source; import javax.xml.transform.stream.StreamSource; +import org.xml.sax.InputSource; + import org.apache.commons.io.IOUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; -import org.xml.sax.InputSource; /** * This class is the main entry point to the hyphenation package. diff --git a/src/java/org/apache/fop/hyphenation/PatternParser.java b/src/java/org/apache/fop/hyphenation/PatternParser.java index 404f10c7f..c08d84660 100644 --- a/src/java/org/apache/fop/hyphenation/PatternParser.java +++ b/src/java/org/apache/fop/hyphenation/PatternParser.java @@ -19,15 +19,6 @@ package org.apache.fop.hyphenation; -// SAX -import org.xml.sax.XMLReader; -import org.xml.sax.InputSource; -import org.xml.sax.SAXException; -import org.xml.sax.SAXParseException; -import org.xml.sax.helpers.DefaultHandler; -import org.xml.sax.Attributes; - -// Java import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; @@ -39,6 +30,13 @@ import java.util.ArrayList; import javax.xml.parsers.SAXParserFactory; +import org.xml.sax.Attributes; +import org.xml.sax.InputSource; +import org.xml.sax.SAXException; +import org.xml.sax.SAXParseException; +import org.xml.sax.XMLReader; +import org.xml.sax.helpers.DefaultHandler; + /** * A SAX document handler to read and parse hyphenation patterns * from a XML file. diff --git a/src/java/org/apache/fop/hyphenation/TernaryTree.java b/src/java/org/apache/fop/hyphenation/TernaryTree.java index 2734c0385..918a747fa 100644 --- a/src/java/org/apache/fop/hyphenation/TernaryTree.java +++ b/src/java/org/apache/fop/hyphenation/TernaryTree.java @@ -19,9 +19,9 @@ package org.apache.fop.hyphenation; +import java.io.Serializable; import java.util.Enumeration; import java.util.Stack; -import java.io.Serializable; /** *

Ternary Search Tree.

diff --git a/src/java/org/apache/fop/image/loader/batik/ImageConverterSVG2G2D.java b/src/java/org/apache/fop/image/loader/batik/ImageConverterSVG2G2D.java index 0b7989fb2..79592efd1 100644 --- a/src/java/org/apache/fop/image/loader/batik/ImageConverterSVG2G2D.java +++ b/src/java/org/apache/fop/image/loader/batik/ImageConverterSVG2G2D.java @@ -25,13 +25,14 @@ import java.util.Map; import org.w3c.dom.Document; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + import org.apache.batik.bridge.BridgeContext; import org.apache.batik.bridge.GVTBuilder; import org.apache.batik.bridge.UserAgent; import org.apache.batik.dom.svg.SVGDOMImplementation; import org.apache.batik.gvt.GraphicsNode; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; import org.apache.xmlgraphics.image.GraphicsConstants; import org.apache.xmlgraphics.image.loader.Image; diff --git a/src/java/org/apache/fop/image/loader/batik/ImageConverterWMF2G2D.java b/src/java/org/apache/fop/image/loader/batik/ImageConverterWMF2G2D.java index 7bc8c2050..6d84a03d3 100644 --- a/src/java/org/apache/fop/image/loader/batik/ImageConverterWMF2G2D.java +++ b/src/java/org/apache/fop/image/loader/batik/ImageConverterWMF2G2D.java @@ -24,11 +24,12 @@ import java.awt.Graphics2D; import java.awt.geom.Rectangle2D; import java.util.Map; -import org.apache.batik.transcoder.wmf.tosvg.WMFPainter; -import org.apache.batik.transcoder.wmf.tosvg.WMFRecordStore; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.apache.batik.transcoder.wmf.tosvg.WMFPainter; +import org.apache.batik.transcoder.wmf.tosvg.WMFRecordStore; + import org.apache.xmlgraphics.image.loader.Image; import org.apache.xmlgraphics.image.loader.ImageFlavor; import org.apache.xmlgraphics.image.loader.impl.AbstractImageConverter; diff --git a/src/java/org/apache/fop/image/loader/batik/PreloaderSVG.java b/src/java/org/apache/fop/image/loader/batik/PreloaderSVG.java index c675e3cfc..022ff462f 100644 --- a/src/java/org/apache/fop/image/loader/batik/PreloaderSVG.java +++ b/src/java/org/apache/fop/image/loader/batik/PreloaderSVG.java @@ -30,13 +30,14 @@ import javax.xml.transform.dom.DOMSource; import org.w3c.dom.Element; import org.w3c.dom.svg.SVGDocument; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + import org.apache.batik.bridge.BridgeContext; import org.apache.batik.bridge.UnitProcessor; import org.apache.batik.bridge.UserAgent; import org.apache.batik.dom.svg.SAXSVGDocumentFactory; import org.apache.batik.dom.svg.SVGOMDocument; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; import org.apache.xmlgraphics.image.loader.ImageContext; import org.apache.xmlgraphics.image.loader.ImageInfo; diff --git a/src/java/org/apache/fop/image/loader/batik/PreloaderWMF.java b/src/java/org/apache/fop/image/loader/batik/PreloaderWMF.java index 8bda04903..3bef0f41d 100644 --- a/src/java/org/apache/fop/image/loader/batik/PreloaderWMF.java +++ b/src/java/org/apache/fop/image/loader/batik/PreloaderWMF.java @@ -25,13 +25,14 @@ import java.io.InputStream; import javax.xml.transform.Source; -import org.apache.batik.transcoder.wmf.WMFConstants; -import org.apache.batik.transcoder.wmf.tosvg.WMFRecordStore; import org.apache.commons.io.EndianUtils; import org.apache.commons.io.IOUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.apache.batik.transcoder.wmf.WMFConstants; +import org.apache.batik.transcoder.wmf.tosvg.WMFRecordStore; + import org.apache.xmlgraphics.image.loader.ImageContext; import org.apache.xmlgraphics.image.loader.ImageInfo; import org.apache.xmlgraphics.image.loader.ImageSize; diff --git a/src/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java b/src/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java index dd9c34149..05f3b1eff 100644 --- a/src/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java @@ -27,6 +27,8 @@ import java.util.Map; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.apache.xmlgraphics.util.QName; + import org.apache.fop.area.Area; import org.apache.fop.area.AreaTreeObject; import org.apache.fop.area.PageViewport; @@ -35,7 +37,6 @@ import org.apache.fop.fo.FONode; import org.apache.fop.fo.FObj; import org.apache.fop.fo.flow.Marker; import org.apache.fop.fo.flow.RetrieveMarker; -import org.apache.xmlgraphics.util.QName; /** * The base class for most LayoutManagers. diff --git a/src/java/org/apache/fop/layoutmgr/KnuthSequence.java b/src/java/org/apache/fop/layoutmgr/KnuthSequence.java index 1a9bb6534..d568da45e 100644 --- a/src/java/org/apache/fop/layoutmgr/KnuthSequence.java +++ b/src/java/org/apache/fop/layoutmgr/KnuthSequence.java @@ -19,12 +19,12 @@ package org.apache.fop.layoutmgr; -import org.apache.fop.util.ListUtil; - import java.util.ArrayList; import java.util.List; import java.util.ListIterator; +import org.apache.fop.util.ListUtil; + /** * Represents a list of {@link KnuthElement Knuth elements}. */ diff --git a/src/java/org/apache/fop/layoutmgr/LayoutException.java b/src/java/org/apache/fop/layoutmgr/LayoutException.java index f22d34bd8..0fa96e03f 100644 --- a/src/java/org/apache/fop/layoutmgr/LayoutException.java +++ b/src/java/org/apache/fop/layoutmgr/LayoutException.java @@ -22,8 +22,8 @@ package org.apache.fop.layoutmgr; import java.util.Locale; import org.apache.fop.events.Event; -import org.apache.fop.events.EventFormatter; import org.apache.fop.events.EventExceptionManager.ExceptionFactory; +import org.apache.fop.events.EventFormatter; /** * Exception thrown by FOP if an unrecoverable layout error occurs. An example: An area overflows diff --git a/src/java/org/apache/fop/layoutmgr/LayoutManagerMaker.java b/src/java/org/apache/fop/layoutmgr/LayoutManagerMaker.java index e9e3fb6a7..789d66eb2 100644 --- a/src/java/org/apache/fop/layoutmgr/LayoutManagerMaker.java +++ b/src/java/org/apache/fop/layoutmgr/LayoutManagerMaker.java @@ -20,6 +20,9 @@ package org.apache.fop.layoutmgr; import java.util.List; + +import org.apache.fop.area.AreaTreeHandler; +import org.apache.fop.area.Block; import org.apache.fop.fo.FONode; import org.apache.fop.fo.extensions.ExternalDocument; import org.apache.fop.fo.pagination.Flow; @@ -28,8 +31,6 @@ import org.apache.fop.fo.pagination.SideRegion; import org.apache.fop.fo.pagination.StaticContent; import org.apache.fop.fo.pagination.Title; import org.apache.fop.layoutmgr.inline.ContentLayoutManager; -import org.apache.fop.area.AreaTreeHandler; -import org.apache.fop.area.Block; /** * The interface for all LayoutManager makers diff --git a/src/java/org/apache/fop/layoutmgr/SpaceSpecifier.java b/src/java/org/apache/fop/layoutmgr/SpaceSpecifier.java index 83a67b101..394477658 100644 --- a/src/java/org/apache/fop/layoutmgr/SpaceSpecifier.java +++ b/src/java/org/apache/fop/layoutmgr/SpaceSpecifier.java @@ -19,10 +19,11 @@ package org.apache.fop.layoutmgr; -import org.apache.fop.traits.SpaceVal; import java.util.ArrayList; import java.util.List; + import org.apache.fop.traits.MinOptMax; +import org.apache.fop.traits.SpaceVal; /** * Accumulate a sequence of space-specifiers (XSL space type) on diff --git a/src/java/org/apache/fop/layoutmgr/UnresolvedListElementWithLength.java b/src/java/org/apache/fop/layoutmgr/UnresolvedListElementWithLength.java index 0667b9355..ef4a366eb 100644 --- a/src/java/org/apache/fop/layoutmgr/UnresolvedListElementWithLength.java +++ b/src/java/org/apache/fop/layoutmgr/UnresolvedListElementWithLength.java @@ -21,6 +21,7 @@ package org.apache.fop.layoutmgr; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; + import org.apache.fop.traits.MinOptMax; /** diff --git a/src/java/org/apache/fop/layoutmgr/inline/FootnoteLayoutManager.java b/src/java/org/apache/fop/layoutmgr/inline/FootnoteLayoutManager.java index d5d62dd4b..68a240ff1 100644 --- a/src/java/org/apache/fop/layoutmgr/inline/FootnoteLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/inline/FootnoteLayoutManager.java @@ -25,6 +25,7 @@ import java.util.ListIterator; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; + import org.apache.fop.fo.flow.Footnote; import org.apache.fop.layoutmgr.FootnoteBodyLayoutManager; import org.apache.fop.layoutmgr.InlineKnuthSequence; diff --git a/src/java/org/apache/fop/layoutmgr/inline/LeafNodeLayoutManager.java b/src/java/org/apache/fop/layoutmgr/inline/LeafNodeLayoutManager.java index c7205905b..203c7a7fc 100644 --- a/src/java/org/apache/fop/layoutmgr/inline/LeafNodeLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/inline/LeafNodeLayoutManager.java @@ -19,12 +19,13 @@ package org.apache.fop.layoutmgr.inline; +import java.util.Collections; import java.util.LinkedList; import java.util.List; -import java.util.Collections; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; + import org.apache.fop.area.Area; import org.apache.fop.area.inline.InlineArea; import org.apache.fop.fo.FObj; diff --git a/src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java b/src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java index 4010777ad..0ec6de43b 100644 --- a/src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java @@ -19,8 +19,8 @@ package org.apache.fop.layoutmgr.inline; -import java.util.Arrays; import java.util.ArrayList; +import java.util.Arrays; import java.util.LinkedList; import java.util.List; import java.util.ListIterator; diff --git a/src/java/org/apache/fop/layoutmgr/inline/WrapperLayoutManager.java b/src/java/org/apache/fop/layoutmgr/inline/WrapperLayoutManager.java index 4b93bcdac..ca5179399 100644 --- a/src/java/org/apache/fop/layoutmgr/inline/WrapperLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/inline/WrapperLayoutManager.java @@ -19,8 +19,8 @@ package org.apache.fop.layoutmgr.inline; -import org.apache.fop.area.inline.InlineArea; import org.apache.fop.area.Block; +import org.apache.fop.area.inline.InlineArea; import org.apache.fop.fo.flow.Wrapper; import org.apache.fop.layoutmgr.BlockLayoutManager; import org.apache.fop.layoutmgr.BlockStackingLayoutManager; diff --git a/src/java/org/apache/fop/layoutmgr/list/ListItemContentLayoutManager.java b/src/java/org/apache/fop/layoutmgr/list/ListItemContentLayoutManager.java index 291def4c3..a84069082 100644 --- a/src/java/org/apache/fop/layoutmgr/list/ListItemContentLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/list/ListItemContentLayoutManager.java @@ -34,8 +34,8 @@ import org.apache.fop.layoutmgr.LayoutManager; import org.apache.fop.layoutmgr.NonLeafPosition; import org.apache.fop.layoutmgr.Position; import org.apache.fop.layoutmgr.PositionIterator; -import org.apache.fop.layoutmgr.TraitSetter; import org.apache.fop.layoutmgr.SpaceResolver.SpaceHandlingBreakPosition; +import org.apache.fop.layoutmgr.TraitSetter; /** * LayoutManager for a list-item-label or list-item-body FO. diff --git a/src/java/org/apache/fop/layoutmgr/table/RowGroupLayoutManager.java b/src/java/org/apache/fop/layoutmgr/table/RowGroupLayoutManager.java index 7c11db17d..f41f77ea4 100644 --- a/src/java/org/apache/fop/layoutmgr/table/RowGroupLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/table/RowGroupLayoutManager.java @@ -25,6 +25,7 @@ import java.util.List; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; + import org.apache.fop.fo.Constants; import org.apache.fop.fo.flow.table.EffRow; import org.apache.fop.fo.flow.table.GridUnit; diff --git a/src/java/org/apache/fop/pdf/ASCII85Filter.java b/src/java/org/apache/fop/pdf/ASCII85Filter.java index df82c5179..7a86f57ee 100644 --- a/src/java/org/apache/fop/pdf/ASCII85Filter.java +++ b/src/java/org/apache/fop/pdf/ASCII85Filter.java @@ -19,8 +19,8 @@ package org.apache.fop.pdf; -import java.io.OutputStream; import java.io.IOException; +import java.io.OutputStream; import org.apache.xmlgraphics.util.io.ASCII85OutputStream; diff --git a/src/java/org/apache/fop/pdf/ASCIIHexFilter.java b/src/java/org/apache/fop/pdf/ASCIIHexFilter.java index 01dc75190..3456cf1ae 100644 --- a/src/java/org/apache/fop/pdf/ASCIIHexFilter.java +++ b/src/java/org/apache/fop/pdf/ASCIIHexFilter.java @@ -19,8 +19,8 @@ package org.apache.fop.pdf; -import java.io.OutputStream; import java.io.IOException; +import java.io.OutputStream; import org.apache.xmlgraphics.util.io.ASCIIHexOutputStream; diff --git a/src/java/org/apache/fop/pdf/InMemoryStreamCache.java b/src/java/org/apache/fop/pdf/InMemoryStreamCache.java index 7e9a78aa4..85d265e7f 100644 --- a/src/java/org/apache/fop/pdf/InMemoryStreamCache.java +++ b/src/java/org/apache/fop/pdf/InMemoryStreamCache.java @@ -20,8 +20,8 @@ package org.apache.fop.pdf; import java.io.ByteArrayOutputStream; -import java.io.OutputStream; import java.io.IOException; +import java.io.OutputStream; /** * StreamCache implementation that uses temporary files rather than heap. diff --git a/src/java/org/apache/fop/pdf/PDFCharProcs.java b/src/java/org/apache/fop/pdf/PDFCharProcs.java index 73fe19a5e..6a423e038 100644 --- a/src/java/org/apache/fop/pdf/PDFCharProcs.java +++ b/src/java/org/apache/fop/pdf/PDFCharProcs.java @@ -19,8 +19,8 @@ package org.apache.fop.pdf; -import java.util.Map; import java.util.HashMap; +import java.util.Map; /** * class representing a /CharProcs dictionary for Type3 fonts. diff --git a/src/java/org/apache/fop/pdf/PDFFilter.java b/src/java/org/apache/fop/pdf/PDFFilter.java index c257f0da0..191e9bc66 100644 --- a/src/java/org/apache/fop/pdf/PDFFilter.java +++ b/src/java/org/apache/fop/pdf/PDFFilter.java @@ -19,8 +19,8 @@ package org.apache.fop.pdf; -import java.io.OutputStream; import java.io.IOException; +import java.io.OutputStream; /** * PDF Filter class. diff --git a/src/java/org/apache/fop/pdf/PDFGState.java b/src/java/org/apache/fop/pdf/PDFGState.java index 4b997a145..fe57e39c2 100644 --- a/src/java/org/apache/fop/pdf/PDFGState.java +++ b/src/java/org/apache/fop/pdf/PDFGState.java @@ -19,8 +19,8 @@ package org.apache.fop.pdf; -import java.util.Map; import java.util.Iterator; +import java.util.Map; /** * Class representing a /ExtGState object. diff --git a/src/java/org/apache/fop/pdf/PDFInfo.java b/src/java/org/apache/fop/pdf/PDFInfo.java index 14937bfd7..dabd88685 100644 --- a/src/java/org/apache/fop/pdf/PDFInfo.java +++ b/src/java/org/apache/fop/pdf/PDFInfo.java @@ -19,9 +19,9 @@ package org.apache.fop.pdf; -import java.util.Date; import java.io.ByteArrayOutputStream; import java.io.IOException; +import java.util.Date; /** * class representing an /Info object diff --git a/src/java/org/apache/fop/pdf/PDFPages.java b/src/java/org/apache/fop/pdf/PDFPages.java index bef4bdbc4..1f09fbca6 100644 --- a/src/java/org/apache/fop/pdf/PDFPages.java +++ b/src/java/org/apache/fop/pdf/PDFPages.java @@ -19,9 +19,8 @@ package org.apache.fop.pdf; -// Java -import java.util.List; import java.util.ArrayList; +import java.util.List; /** * class representing a /Pages object. diff --git a/src/java/org/apache/fop/pdf/PDFPattern.java b/src/java/org/apache/fop/pdf/PDFPattern.java index 74f56377e..378b1cf8b 100644 --- a/src/java/org/apache/fop/pdf/PDFPattern.java +++ b/src/java/org/apache/fop/pdf/PDFPattern.java @@ -19,10 +19,9 @@ package org.apache.fop.pdf; -// Java -import java.util.List; -import java.io.OutputStream; import java.io.IOException; +import java.io.OutputStream; +import java.util.List; /** * class representing a PDF Function. diff --git a/src/java/org/apache/fop/pdf/PDFResources.java b/src/java/org/apache/fop/pdf/PDFResources.java index 317f703e1..70f9af504 100644 --- a/src/java/org/apache/fop/pdf/PDFResources.java +++ b/src/java/org/apache/fop/pdf/PDFResources.java @@ -28,6 +28,7 @@ import java.util.Map; import java.util.Set; import org.apache.xmlgraphics.java2d.color.profile.ColorProfileUtil; + import org.apache.fop.fonts.FontDescriptor; import org.apache.fop.fonts.FontInfo; import org.apache.fop.fonts.Typeface; diff --git a/src/java/org/apache/fop/pdf/StreamCache.java b/src/java/org/apache/fop/pdf/StreamCache.java index 95d21ab80..6fa687f23 100644 --- a/src/java/org/apache/fop/pdf/StreamCache.java +++ b/src/java/org/apache/fop/pdf/StreamCache.java @@ -19,8 +19,8 @@ package org.apache.fop.pdf; -import java.io.OutputStream; import java.io.IOException; +import java.io.OutputStream; /** * Interface used to store the bytes for a PDFStream. It's actually a generic diff --git a/src/java/org/apache/fop/pdf/TempFileStreamCache.java b/src/java/org/apache/fop/pdf/TempFileStreamCache.java index 9920a334d..18a7a8b29 100644 --- a/src/java/org/apache/fop/pdf/TempFileStreamCache.java +++ b/src/java/org/apache/fop/pdf/TempFileStreamCache.java @@ -19,13 +19,11 @@ package org.apache.fop.pdf; -// Java +import java.io.File; +import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; -import java.io.IOException; -import java.io.File; -//Commons import org.apache.commons.io.IOUtils; /** diff --git a/src/java/org/apache/fop/render/AbstractConfigurator.java b/src/java/org/apache/fop/render/AbstractConfigurator.java index 4adc1451e..c3c6733b0 100644 --- a/src/java/org/apache/fop/render/AbstractConfigurator.java +++ b/src/java/org/apache/fop/render/AbstractConfigurator.java @@ -21,8 +21,10 @@ package org.apache.fop.render; import org.apache.avalon.framework.configuration.Configuration; import org.apache.avalon.framework.configuration.ConfigurationException; + import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; + import org.apache.fop.apps.FOUserAgent; /** diff --git a/src/java/org/apache/fop/render/XMLHandlerConfigurator.java b/src/java/org/apache/fop/render/XMLHandlerConfigurator.java index b93d4003a..604fdb672 100644 --- a/src/java/org/apache/fop/render/XMLHandlerConfigurator.java +++ b/src/java/org/apache/fop/render/XMLHandlerConfigurator.java @@ -21,8 +21,10 @@ package org.apache.fop.render; import org.apache.avalon.framework.configuration.Configuration; import org.apache.avalon.framework.configuration.ConfigurationException; + import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; + import org.apache.fop.apps.FOPException; import org.apache.fop.apps.FOUserAgent; diff --git a/src/java/org/apache/fop/render/afp/AFPGraphics2DAdapter.java b/src/java/org/apache/fop/render/afp/AFPGraphics2DAdapter.java index becafda23..88734dfb8 100644 --- a/src/java/org/apache/fop/render/afp/AFPGraphics2DAdapter.java +++ b/src/java/org/apache/fop/render/afp/AFPGraphics2DAdapter.java @@ -25,6 +25,8 @@ import java.awt.geom.Rectangle2D; import java.awt.image.BufferedImage; import java.io.IOException; +import org.apache.xmlgraphics.java2d.Graphics2DImagePainter; + import org.apache.fop.afp.AFPGraphics2D; import org.apache.fop.afp.AFPGraphicsObjectInfo; import org.apache.fop.afp.AFPPaintingState; @@ -32,7 +34,6 @@ import org.apache.fop.afp.AFPResourceManager; import org.apache.fop.render.AbstractGraphics2DAdapter; import org.apache.fop.render.RendererContext; import org.apache.fop.render.RendererContext.RendererContextWrapper; -import org.apache.xmlgraphics.java2d.Graphics2DImagePainter; /** * Graphics2DAdapter implementation for AFP. diff --git a/src/java/org/apache/fop/render/afp/AFPInfo.java b/src/java/org/apache/fop/render/afp/AFPInfo.java index 53a1aa046..db00d8ee4 100644 --- a/src/java/org/apache/fop/render/afp/AFPInfo.java +++ b/src/java/org/apache/fop/render/afp/AFPInfo.java @@ -20,6 +20,7 @@ package org.apache.fop.render.afp; import org.apache.avalon.framework.configuration.Configuration; + import org.apache.fop.afp.AFPGraphics2D; import org.apache.fop.afp.AFPPaintingState; import org.apache.fop.afp.AFPResourceInfo; diff --git a/src/java/org/apache/fop/render/afp/AFPPainter.java b/src/java/org/apache/fop/render/afp/AFPPainter.java index 30e4e7693..8b2f31555 100644 --- a/src/java/org/apache/fop/render/afp/AFPPainter.java +++ b/src/java/org/apache/fop/render/afp/AFPPainter.java @@ -30,6 +30,11 @@ import java.net.URI; import java.net.URISyntaxException; import java.util.Map; +import org.w3c.dom.Document; + +import org.apache.xmlgraphics.image.loader.ImageProcessingHints; +import org.apache.xmlgraphics.image.loader.ImageSessionContext; + import org.apache.fop.afp.AFPBorderPainter; import org.apache.fop.afp.AFPPaintingState; import org.apache.fop.afp.AFPUnitConverter; @@ -61,9 +66,6 @@ import org.apache.fop.render.intermediate.IFUtil; import org.apache.fop.traits.BorderProps; import org.apache.fop.traits.RuleStyle; import org.apache.fop.util.CharUtilities; -import org.apache.xmlgraphics.image.loader.ImageProcessingHints; -import org.apache.xmlgraphics.image.loader.ImageSessionContext; -import org.w3c.dom.Document; /** * IFPainter implementation that produces AFP (MO:DCA). diff --git a/src/java/org/apache/fop/render/afp/AFPRendererImageInfo.java b/src/java/org/apache/fop/render/afp/AFPRendererImageInfo.java index 2687d9071..c11c89217 100644 --- a/src/java/org/apache/fop/render/afp/AFPRendererImageInfo.java +++ b/src/java/org/apache/fop/render/afp/AFPRendererImageInfo.java @@ -23,10 +23,11 @@ import java.awt.Point; import java.awt.geom.Rectangle2D; import java.util.Map; -import org.apache.fop.render.RendererContext; import org.apache.xmlgraphics.image.loader.Image; import org.apache.xmlgraphics.image.loader.ImageInfo; +import org.apache.fop.render.RendererContext; + /** * The AFP image information */ diff --git a/src/java/org/apache/fop/render/afp/extensions/AFPExtensionHandlerFactory.java b/src/java/org/apache/fop/render/afp/extensions/AFPExtensionHandlerFactory.java index e987866df..cc12ed9f4 100644 --- a/src/java/org/apache/fop/render/afp/extensions/AFPExtensionHandlerFactory.java +++ b/src/java/org/apache/fop/render/afp/extensions/AFPExtensionHandlerFactory.java @@ -19,9 +19,10 @@ package org.apache.fop.render.afp.extensions; -import org.apache.fop.util.ContentHandlerFactory; import org.xml.sax.ContentHandler; +import org.apache.fop.util.ContentHandlerFactory; + /** * Factory for the ContentHandler that handles serialized AFPPageSetup instances. */ diff --git a/src/java/org/apache/fop/render/afp/extensions/AFPPageOverlayElement.java b/src/java/org/apache/fop/render/afp/extensions/AFPPageOverlayElement.java index 7d2f2f7d3..0b9645236 100644 --- a/src/java/org/apache/fop/render/afp/extensions/AFPPageOverlayElement.java +++ b/src/java/org/apache/fop/render/afp/extensions/AFPPageOverlayElement.java @@ -22,14 +22,15 @@ package org.apache.fop.render.afp.extensions; import org.xml.sax.Attributes; import org.xml.sax.Locator; +import org.apache.xmlgraphics.util.UnitConv; + +import org.apache.fop.afp.AFPPaintingState; +import org.apache.fop.afp.AFPUnitConverter; import org.apache.fop.apps.FOPException; import org.apache.fop.fo.Constants; import org.apache.fop.fo.FONode; import org.apache.fop.fo.PropertyList; import org.apache.fop.fo.extensions.ExtensionAttachment; -import org.apache.fop.afp.AFPPaintingState; -import org.apache.fop.afp.AFPUnitConverter; -import org.apache.xmlgraphics.util.UnitConv; /** * This class extends the org.apache.fop.render.afp.extensions.AbstractAFPExtensionObject class. diff --git a/src/java/org/apache/fop/render/awt/viewer/Command.java b/src/java/org/apache/fop/render/awt/viewer/Command.java index ef6559a11..f989eaf33 100644 --- a/src/java/org/apache/fop/render/awt/viewer/Command.java +++ b/src/java/org/apache/fop/render/awt/viewer/Command.java @@ -19,11 +19,11 @@ package org.apache.fop.render.awt.viewer; -//Java import java.awt.event.ActionEvent; +import java.net.URL; + import javax.swing.AbstractAction; import javax.swing.ImageIcon; -import java.net.URL; /** * This class represents UI-commands, which can be used as menu or toolbar diff --git a/src/java/org/apache/fop/render/awt/viewer/GoToPageDialog.java b/src/java/org/apache/fop/render/awt/viewer/GoToPageDialog.java index 0ff71be67..599a7d788 100644 --- a/src/java/org/apache/fop/render/awt/viewer/GoToPageDialog.java +++ b/src/java/org/apache/fop/render/awt/viewer/GoToPageDialog.java @@ -24,6 +24,8 @@ import java.awt.Frame; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JDialog; @@ -31,9 +33,6 @@ import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTextField; -import java.awt.event.ActionEvent; -import java.awt.event.ActionListener; - /** * Go to Page Dialog. * Originally contributed by: diff --git a/src/java/org/apache/fop/render/awt/viewer/ImageProxyPanel.java b/src/java/org/apache/fop/render/awt/viewer/ImageProxyPanel.java index 9b3cac0a0..d0d35e84b 100644 --- a/src/java/org/apache/fop/render/awt/viewer/ImageProxyPanel.java +++ b/src/java/org/apache/fop/render/awt/viewer/ImageProxyPanel.java @@ -25,6 +25,7 @@ import java.awt.Insets; import java.awt.image.BufferedImage; import java.lang.ref.Reference; import java.lang.ref.SoftReference; + import javax.swing.JPanel; import org.apache.fop.apps.FOPException; diff --git a/src/java/org/apache/fop/render/awt/viewer/PreviewDialogAboutBox.java b/src/java/org/apache/fop/render/awt/viewer/PreviewDialogAboutBox.java index b76675179..53cd585c9 100644 --- a/src/java/org/apache/fop/render/awt/viewer/PreviewDialogAboutBox.java +++ b/src/java/org/apache/fop/render/awt/viewer/PreviewDialogAboutBox.java @@ -19,24 +19,22 @@ package org.apache.fop.render.awt.viewer; -//Java import java.awt.AWTEvent; import java.awt.BorderLayout; import java.awt.Dialog; import java.awt.FlowLayout; import java.awt.Frame; import java.awt.GridLayout; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.WindowEvent; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.border.EmptyBorder; -import java.awt.event.ActionListener; -import java.awt.event.WindowEvent; -import java.awt.event.ActionEvent; -//FOP import org.apache.fop.Version; /** diff --git a/src/java/org/apache/fop/render/awt/viewer/Translator.java b/src/java/org/apache/fop/render/awt/viewer/Translator.java index df07a987f..538c2cd59 100644 --- a/src/java/org/apache/fop/render/awt/viewer/Translator.java +++ b/src/java/org/apache/fop/render/awt/viewer/Translator.java @@ -19,9 +19,8 @@ package org.apache.fop.render.awt.viewer; -//Java -import java.util.ResourceBundle; import java.util.Locale; +import java.util.ResourceBundle; /** * AWT Viewer's localization class, backed up by java.util.ResourceBundle. diff --git a/src/java/org/apache/fop/render/intermediate/IFRenderer.java b/src/java/org/apache/fop/render/intermediate/IFRenderer.java index 5940fb661..ba308eadb 100644 --- a/src/java/org/apache/fop/render/intermediate/IFRenderer.java +++ b/src/java/org/apache/fop/render/intermediate/IFRenderer.java @@ -39,10 +39,11 @@ import javax.xml.transform.stream.StreamResult; import org.w3c.dom.Document; import org.xml.sax.SAXException; -import org.apache.batik.parser.AWTTransformProducer; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.apache.batik.parser.AWTTransformProducer; + import org.apache.xmlgraphics.xmp.Metadata; import org.apache.xmlgraphics.xmp.schemas.DublinCoreAdapter; import org.apache.xmlgraphics.xmp.schemas.DublinCoreSchema; diff --git a/src/java/org/apache/fop/render/java2d/InstalledFontCollection.java b/src/java/org/apache/fop/render/java2d/InstalledFontCollection.java index 65e82f7b3..afb22a883 100644 --- a/src/java/org/apache/fop/render/java2d/InstalledFontCollection.java +++ b/src/java/org/apache/fop/render/java2d/InstalledFontCollection.java @@ -24,6 +24,7 @@ import java.util.Set; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; + import org.apache.fop.fonts.Font; import org.apache.fop.fonts.FontCollection; import org.apache.fop.fonts.FontInfo; diff --git a/src/java/org/apache/fop/render/java2d/Java2DRendererConfigurator.java b/src/java/org/apache/fop/render/java2d/Java2DRendererConfigurator.java index 0709d4ea9..a12cb3898 100644 --- a/src/java/org/apache/fop/render/java2d/Java2DRendererConfigurator.java +++ b/src/java/org/apache/fop/render/java2d/Java2DRendererConfigurator.java @@ -20,6 +20,7 @@ package org.apache.fop.render.java2d; import org.apache.avalon.framework.configuration.Configuration; + import org.apache.fop.apps.FOPException; import org.apache.fop.apps.FOUserAgent; import org.apache.fop.render.PrintRendererConfigurator; diff --git a/src/java/org/apache/fop/render/java2d/Java2DSVGHandler.java b/src/java/org/apache/fop/render/java2d/Java2DSVGHandler.java index 4c20a8959..9227e678a 100644 --- a/src/java/org/apache/fop/render/java2d/Java2DSVGHandler.java +++ b/src/java/org/apache/fop/render/java2d/Java2DSVGHandler.java @@ -25,11 +25,12 @@ import java.util.Map; import org.w3c.dom.Document; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + import org.apache.batik.bridge.BridgeContext; import org.apache.batik.bridge.GVTBuilder; import org.apache.batik.gvt.GraphicsNode; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; import org.apache.fop.image.loader.batik.BatikUtil; import org.apache.fop.render.AbstractGenericSVGHandler; diff --git a/src/java/org/apache/fop/render/pdf/PDFImageHandlerSVG.java b/src/java/org/apache/fop/render/pdf/PDFImageHandlerSVG.java index b5b13e935..bc3b66ece 100644 --- a/src/java/org/apache/fop/render/pdf/PDFImageHandlerSVG.java +++ b/src/java/org/apache/fop/render/pdf/PDFImageHandlerSVG.java @@ -26,13 +26,14 @@ import java.io.IOException; import org.w3c.dom.Document; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + import org.apache.batik.bridge.BridgeContext; import org.apache.batik.bridge.GVTBuilder; import org.apache.batik.dom.svg.SVGDOMImplementation; import org.apache.batik.gvt.GraphicsNode; import org.apache.batik.util.SVGConstants; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; import org.apache.xmlgraphics.image.loader.Image; import org.apache.xmlgraphics.image.loader.ImageFlavor; diff --git a/src/java/org/apache/fop/render/ps/FontResourceCache.java b/src/java/org/apache/fop/render/ps/FontResourceCache.java index 086117536..9d4090eed 100644 --- a/src/java/org/apache/fop/render/ps/FontResourceCache.java +++ b/src/java/org/apache/fop/render/ps/FontResourceCache.java @@ -21,10 +21,11 @@ package org.apache.fop.render.ps; import java.util.Map; +import org.apache.xmlgraphics.ps.PSResource; + import org.apache.fop.fonts.FontInfo; import org.apache.fop.fonts.LazyFont; import org.apache.fop.fonts.Typeface; -import org.apache.xmlgraphics.ps.PSResource; /** * A cache for font resource objects. diff --git a/src/java/org/apache/fop/render/ps/PSFontUtils.java b/src/java/org/apache/fop/render/ps/PSFontUtils.java index b8d1b63e8..5e95b5ded 100644 --- a/src/java/org/apache/fop/render/ps/PSFontUtils.java +++ b/src/java/org/apache/fop/render/ps/PSFontUtils.java @@ -30,6 +30,13 @@ import javax.xml.transform.stream.StreamSource; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; + +import org.apache.xmlgraphics.fonts.Glyphs; +import org.apache.xmlgraphics.ps.DSCConstants; +import org.apache.xmlgraphics.ps.PSGenerator; +import org.apache.xmlgraphics.ps.PSResource; +import org.apache.xmlgraphics.ps.dsc.ResourceTracker; + import org.apache.fop.fonts.Base14Font; import org.apache.fop.fonts.CustomFont; import org.apache.fop.fonts.Font; @@ -39,11 +46,6 @@ import org.apache.fop.fonts.LazyFont; import org.apache.fop.fonts.SingleByteEncoding; import org.apache.fop.fonts.SingleByteFont; import org.apache.fop.fonts.Typeface; -import org.apache.xmlgraphics.fonts.Glyphs; -import org.apache.xmlgraphics.ps.DSCConstants; -import org.apache.xmlgraphics.ps.PSGenerator; -import org.apache.xmlgraphics.ps.PSResource; -import org.apache.xmlgraphics.ps.dsc.ResourceTracker; /** * Utility code for font handling in PostScript. diff --git a/src/java/org/apache/fop/render/ps/PSGraphics2DAdapter.java b/src/java/org/apache/fop/render/ps/PSGraphics2DAdapter.java index e13591ae3..d55e0960a 100644 --- a/src/java/org/apache/fop/render/ps/PSGraphics2DAdapter.java +++ b/src/java/org/apache/fop/render/ps/PSGraphics2DAdapter.java @@ -34,8 +34,8 @@ import org.apache.fop.pdf.PDFFactory; import org.apache.fop.render.AbstractGraphics2DAdapter; import org.apache.fop.render.ImageHandlerUtil; import org.apache.fop.render.RendererContext; -import org.apache.fop.render.RendererContextConstants; import org.apache.fop.render.RendererContext.RendererContextWrapper; +import org.apache.fop.render.RendererContextConstants; /** * Graphics2DAdapter implementation for PostScript. diff --git a/src/java/org/apache/fop/render/ps/PSImageHandlerGraphics2D.java b/src/java/org/apache/fop/render/ps/PSImageHandlerGraphics2D.java index 9bbd3e62b..3293840e5 100644 --- a/src/java/org/apache/fop/render/ps/PSImageHandlerGraphics2D.java +++ b/src/java/org/apache/fop/render/ps/PSImageHandlerGraphics2D.java @@ -26,7 +26,6 @@ import java.awt.geom.Dimension2D; import java.awt.geom.Rectangle2D; import java.io.IOException; -import org.apache.fop.render.RenderingContext; import org.apache.xmlgraphics.image.loader.Image; import org.apache.xmlgraphics.image.loader.ImageFlavor; import org.apache.xmlgraphics.image.loader.ImageInfo; @@ -37,6 +36,8 @@ import org.apache.xmlgraphics.ps.FormGenerator; import org.apache.xmlgraphics.ps.PSGenerator; import org.apache.xmlgraphics.ps.PSProcSets; +import org.apache.fop.render.RenderingContext; + /** * Image handler implementation which handles vector graphics (Java2D) for PostScript output. */ diff --git a/src/java/org/apache/fop/render/ps/PSSVGHandler.java b/src/java/org/apache/fop/render/ps/PSSVGHandler.java index 14e2beddd..c52f45332 100644 --- a/src/java/org/apache/fop/render/ps/PSSVGHandler.java +++ b/src/java/org/apache/fop/render/ps/PSSVGHandler.java @@ -27,6 +27,7 @@ import java.util.Map; import org.w3c.dom.Document; import org.apache.avalon.framework.configuration.Configuration; + import org.apache.batik.bridge.BridgeContext; import org.apache.batik.bridge.GVTBuilder; import org.apache.batik.gvt.GraphicsNode; diff --git a/src/java/org/apache/fop/render/ps/extensions/AbstractPSExtensionObject.java b/src/java/org/apache/fop/render/ps/extensions/AbstractPSExtensionObject.java index d5aea37df..d097e7b5e 100644 --- a/src/java/org/apache/fop/render/ps/extensions/AbstractPSExtensionObject.java +++ b/src/java/org/apache/fop/render/ps/extensions/AbstractPSExtensionObject.java @@ -19,14 +19,14 @@ package org.apache.fop.render.ps.extensions; -// FOP +import org.xml.sax.Attributes; +import org.xml.sax.Locator; + import org.apache.fop.apps.FOPException; import org.apache.fop.fo.FONode; import org.apache.fop.fo.PropertyList; import org.apache.fop.fo.ValidationException; import org.apache.fop.fo.extensions.ExtensionAttachment; -import org.xml.sax.Attributes; -import org.xml.sax.Locator; /** * Base class for the PostScript-specific extension elements. diff --git a/src/java/org/apache/fop/render/ps/extensions/PSExtensionElementMapping.java b/src/java/org/apache/fop/render/ps/extensions/PSExtensionElementMapping.java index 54806d047..00d0594f2 100644 --- a/src/java/org/apache/fop/render/ps/extensions/PSExtensionElementMapping.java +++ b/src/java/org/apache/fop/render/ps/extensions/PSExtensionElementMapping.java @@ -19,8 +19,8 @@ package org.apache.fop.render.ps.extensions; -import org.apache.fop.fo.FONode; import org.apache.fop.fo.ElementMapping; +import org.apache.fop.fo.FONode; /** * This class provides the element mapping for the PostScript-specific extensions. diff --git a/src/java/org/apache/fop/render/ps/extensions/PSExtensionHandlerFactory.java b/src/java/org/apache/fop/render/ps/extensions/PSExtensionHandlerFactory.java index d94e236f7..736246dfb 100644 --- a/src/java/org/apache/fop/render/ps/extensions/PSExtensionHandlerFactory.java +++ b/src/java/org/apache/fop/render/ps/extensions/PSExtensionHandlerFactory.java @@ -19,9 +19,10 @@ package org.apache.fop.render.ps.extensions; -import org.apache.fop.util.ContentHandlerFactory; import org.xml.sax.ContentHandler; +import org.apache.fop.util.ContentHandlerFactory; + /** * Factory for the ContentHandler that handles serialized PSSetupCode instances. */ diff --git a/src/java/org/apache/fop/render/rtf/FOPRtfAttributes.java b/src/java/org/apache/fop/render/rtf/FOPRtfAttributes.java index 5cc752d30..3ffed6ba0 100644 --- a/src/java/org/apache/fop/render/rtf/FOPRtfAttributes.java +++ b/src/java/org/apache/fop/render/rtf/FOPRtfAttributes.java @@ -20,6 +20,7 @@ package org.apache.fop.render.rtf; import java.awt.Color; + import org.apache.fop.datatypes.Length; import org.apache.fop.render.DummyPercentBaseContext; import org.apache.fop.render.rtf.rtflib.rtfdoc.RtfAttributes; diff --git a/src/java/org/apache/fop/render/rtf/FoUnitsConverter.java b/src/java/org/apache/fop/render/rtf/FoUnitsConverter.java index 8540fcde3..647b3f53b 100644 --- a/src/java/org/apache/fop/render/rtf/FoUnitsConverter.java +++ b/src/java/org/apache/fop/render/rtf/FoUnitsConverter.java @@ -22,9 +22,10 @@ package org.apache.fop.render.rtf; import java.util.HashMap; import java.util.Map; +import org.apache.xmlgraphics.util.UnitConv; + import org.apache.fop.apps.FOPException; import org.apache.fop.fo.properties.FixedLength; -import org.apache.xmlgraphics.util.UnitConv; /** Converts XSL-FO units to RTF units diff --git a/src/java/org/apache/fop/render/rtf/TableAttributesConverter.java b/src/java/org/apache/fop/render/rtf/TableAttributesConverter.java index 2944b230a..a9be38d16 100644 --- a/src/java/org/apache/fop/render/rtf/TableAttributesConverter.java +++ b/src/java/org/apache/fop/render/rtf/TableAttributesConverter.java @@ -24,9 +24,9 @@ import java.awt.Color; import org.apache.fop.apps.FOPException; import org.apache.fop.fo.Constants; import org.apache.fop.fo.flow.table.Table; -import org.apache.fop.fo.flow.table.TablePart; import org.apache.fop.fo.flow.table.TableCell; import org.apache.fop.fo.flow.table.TableHeader; +import org.apache.fop.fo.flow.table.TablePart; import org.apache.fop.fo.flow.table.TableRow; import org.apache.fop.fo.properties.CommonBorderPaddingBackground; import org.apache.fop.render.rtf.rtflib.rtfdoc.ITableAttributes; diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfAfter.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfAfter.java index 078439306..f081bd2ee 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfAfter.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfAfter.java @@ -26,8 +26,8 @@ package org.apache.fop.render.rtf.rtflib.rtfdoc; * the FOP project. */ -import java.io.Writer; import java.io.IOException; +import java.io.Writer; /** RtfContainer that encloses footers */ public class RtfAfter extends RtfAfterBeforeBase { diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfAfterBeforeBase.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfAfterBeforeBase.java index 5fbde8d3e..6038ebfdd 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfAfterBeforeBase.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfAfterBeforeBase.java @@ -26,8 +26,8 @@ package org.apache.fop.render.rtf.rtflib.rtfdoc; * the FOP project. */ -import java.io.Writer; import java.io.IOException; +import java.io.Writer; /** Common code for RtfAfter and RtfBefore * @author Andreas Lambert diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfBefore.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfBefore.java index 0828be238..415b70b7d 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfBefore.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfBefore.java @@ -26,8 +26,8 @@ package org.apache.fop.render.rtf.rtflib.rtfdoc; * the FOP project. */ -import java.io.Writer; import java.io.IOException; +import java.io.Writer; /** The opposite of RtfAfter */ public class RtfBefore extends RtfAfterBeforeBase { diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfBookmark.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfBookmark.java index 7da14061e..714026848 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfBookmark.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfBookmark.java @@ -26,8 +26,8 @@ package org.apache.fop.render.rtf.rtflib.rtfdoc; * the FOP project. */ -import java.io.Writer; import java.io.IOException; +import java.io.Writer; /** * RTF Bookmark. diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfBookmarkContainerImpl.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfBookmarkContainerImpl.java index 3eee4cd71..b8bcc5614 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfBookmarkContainerImpl.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfBookmarkContainerImpl.java @@ -26,8 +26,8 @@ package org.apache.fop.render.rtf.rtflib.rtfdoc; * the FOP project. */ -import java.io.Writer; import java.io.IOException; +import java.io.Writer; /** * RTF Bookmark container implementation. diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfColorTable.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfColorTable.java index 8df7bd7b2..118c810e0 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfColorTable.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfColorTable.java @@ -26,9 +26,9 @@ package org.apache.fop.render.rtf.rtflib.rtfdoc; * the FOP project. */ -import java.util.Vector; -import java.util.Hashtable; import java.io.IOException; +import java.util.Hashtable; +import java.util.Vector; /** * Singelton of the RTF color table. diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfContainer.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfContainer.java index 5a6b1d6ed..b138f722b 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfContainer.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfContainer.java @@ -26,11 +26,12 @@ package org.apache.fop.render.rtf.rtflib.rtfdoc; * the FOP project. */ +import java.io.IOException; import java.io.Writer; +import java.util.Iterator; import java.util.LinkedList; import java.util.List; -import java.util.Iterator; -import java.io.IOException; + import org.apache.fop.render.rtf.rtflib.exceptions.RtfStructureException; /** An RtfElement that can contain other elements. diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfDocumentArea.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfDocumentArea.java index 6204e2ac2..c94f24554 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfDocumentArea.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfDocumentArea.java @@ -26,8 +26,8 @@ package org.apache.fop.render.rtf.rtflib.rtfdoc; * the FOP project. */ -import java.io.Writer; import java.io.IOException; +import java.io.Writer; /** The RTF document area, container for RtfSection objects. * @author Bertrand Delacretaz bdelacretaz@codeconsult.ch diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfElement.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfElement.java index 3f1e2f7e1..424fd22b1 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfElement.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfElement.java @@ -26,10 +26,9 @@ package org.apache.fop.render.rtf.rtflib.rtfdoc; * the FOP project. */ -import java.io.Writer; import java.io.IOException; +import java.io.Writer; import java.util.Iterator; -//import org.apache.fop.render.rtf.rtflib.jfor.main.JForVersionInfo; /** Base class for all elements of an RTF file. * @author Bertrand Delacretaz bdelacretaz@codeconsult.ch diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfExtraRowSet.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfExtraRowSet.java index c08008fee..42888ee59 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfExtraRowSet.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfExtraRowSet.java @@ -26,12 +26,12 @@ package org.apache.fop.render.rtf.rtflib.rtfdoc; * the FOP project. */ -import java.io.Writer; import java.io.IOException; -import java.util.List; -import java.util.LinkedList; -import java.util.Iterator; +import java.io.Writer; import java.util.Collections; +import java.util.Iterator; +import java.util.LinkedList; +import java.util.List; /** diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfFile.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfFile.java index 9376f5564..de29afd2a 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfFile.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfFile.java @@ -26,12 +26,13 @@ package org.apache.fop.render.rtf.rtflib.rtfdoc; * the FOP project. */ -import org.apache.fop.render.rtf.rtflib.exceptions.RtfStructureException; -import java.io.Writer; -import java.io.IOException; import java.io.BufferedWriter; import java.io.FileWriter; +import java.io.IOException; import java.io.OutputStreamWriter; +import java.io.Writer; + +import org.apache.fop.render.rtf.rtflib.exceptions.RtfStructureException; /** * Models the top-level structure of an RTF file. diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfFontTable.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfFontTable.java index c64f27377..236919c96 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfFontTable.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfFontTable.java @@ -26,8 +26,8 @@ package org.apache.fop.render.rtf.rtflib.rtfdoc; * the FOP project. */ -import java.io.Writer; import java.io.IOException; +import java.io.Writer; /** RTF font table * @author Bertrand Delacretaz bdelacretaz@codeconsult.ch diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfFootnote.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfFootnote.java index d7ab4c716..394d12680 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfFootnote.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfFootnote.java @@ -19,9 +19,8 @@ package org.apache.fop.render.rtf.rtflib.rtfdoc; -//Java -import java.io.Writer; import java.io.IOException; +import java.io.Writer; /** Model of an RTF footnote * @author Peter Herweg, pherweg@web.de diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfHeader.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfHeader.java index 2554cad38..b093eab49 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfHeader.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfHeader.java @@ -26,12 +26,11 @@ package org.apache.fop.render.rtf.rtflib.rtfdoc; * the FOP project. */ -import java.util.Map; +import java.io.IOException; +import java.io.Writer; import java.util.HashMap; import java.util.Iterator; -import java.io.Writer; -import java.io.IOException; -//import org.apache.fop.render.rtf.rtflib.jfor.main.JForVersionInfo; +import java.util.Map; /** RTF file header, contains style, font and other document-level information. * @author Bertrand Delacretaz bdelacretaz@codeconsult.ch diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfHyperLink.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfHyperLink.java index a021948ab..6e0028b55 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfHyperLink.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfHyperLink.java @@ -26,8 +26,8 @@ package org.apache.fop.render.rtf.rtflib.rtfdoc; * the FOP project. */ -import java.io.Writer; import java.io.IOException; +import java.io.Writer; /** * Creates an hyperlink. diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfJforCmd.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfJforCmd.java index b9e53d42f..c52ccb959 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfJforCmd.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfJforCmd.java @@ -26,9 +26,9 @@ package org.apache.fop.render.rtf.rtflib.rtfdoc; * the FOP project. */ +import java.io.IOException; import java.io.Writer; import java.util.Iterator; -import java.io.IOException; /** * Process "jfor-cmd" diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfLineBreak.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfLineBreak.java index 4073302ce..2b1db99ce 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfLineBreak.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfLineBreak.java @@ -26,8 +26,8 @@ package org.apache.fop.render.rtf.rtflib.rtfdoc; * the FOP project. */ -import java.io.Writer; import java.io.IOException; +import java.io.Writer; /** "Model" of an RTF line break * @author Bertrand Delacretaz bdelacretaz@codeconsult.ch diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListItem.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListItem.java index 53af6940f..13628a49d 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListItem.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListItem.java @@ -26,8 +26,8 @@ package org.apache.fop.render.rtf.rtflib.rtfdoc; * the FOP project. */ -import java.io.Writer; import java.io.IOException; +import java.io.Writer; /** Model of an RTF list item, which can contain RTF paragraphs * @author Bertrand Delacretaz bdelacretaz@codeconsult.ch diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListTable.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListTable.java index aeb9618f4..7bdda21a0 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListTable.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListTable.java @@ -26,11 +26,10 @@ package org.apache.fop.render.rtf.rtflib.rtfdoc; * the FOP project. */ -import java.util.LinkedList; -import java.util.Iterator; -import java.io.Writer; import java.io.IOException; -//import org.apache.fop.render.rtf.rtflib.jfor.main.JForVersionInfo; +import java.io.Writer; +import java.util.Iterator; +import java.util.LinkedList; /** * RtfListTable: used to make the list table in the header section of the RtfFile. diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfNull.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfNull.java index 4e6e08291..bd44ae2ba 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfNull.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfNull.java @@ -26,8 +26,8 @@ package org.apache.fop.render.rtf.rtflib.rtfdoc; * the FOP project. */ -import java.io.Writer; import java.io.IOException; +import java.io.Writer; /** * @author Christopher Scott, scottc@westinghouse.com diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfPageArea.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfPageArea.java index 851dc6c87..0696a70c0 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfPageArea.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfPageArea.java @@ -26,8 +26,8 @@ package org.apache.fop.render.rtf.rtflib.rtfdoc; * the FOP project. */ -import java.io.Writer; import java.io.IOException; +import java.io.Writer; /** * @author Christopher Scott, scottc@westinghouse.com diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfPageBreak.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfPageBreak.java index b570842c2..b386c7c0f 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfPageBreak.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfPageBreak.java @@ -26,8 +26,8 @@ package org.apache.fop.render.rtf.rtflib.rtfdoc; * the FOP project. */ -import java.io.Writer; import java.io.IOException; +import java.io.Writer; /** "Model" of an RTF page break * @author Bertrand Delacretaz bdelacretaz@codeconsult.ch diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfPageNumber.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfPageNumber.java index 235b3f8e1..ad2984b9b 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfPageNumber.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfPageNumber.java @@ -26,8 +26,8 @@ package org.apache.fop.render.rtf.rtflib.rtfdoc; * the FOP project. */ -import java.io.Writer; import java.io.IOException; +import java.io.Writer; /** * @author Christopher Scott, scottc@westinghouse.com diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfParagraph.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfParagraph.java index ffc37a667..a4ad8e8f4 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfParagraph.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfParagraph.java @@ -26,8 +26,8 @@ package org.apache.fop.render.rtf.rtflib.rtfdoc; * the FOP project. */ -import java.io.Writer; import java.io.IOException; +import java.io.Writer; import java.util.List; /** Model of an RTF paragraph, which can contain RTF text elements. diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfParagraphKeepTogether.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfParagraphKeepTogether.java index e27ab6460..d682626ec 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfParagraphKeepTogether.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfParagraphKeepTogether.java @@ -26,8 +26,8 @@ package org.apache.fop.render.rtf.rtflib.rtfdoc; * the FOP project. */ -import java.io.Writer; import java.io.IOException; +import java.io.Writer; /** * Models the keep together attributes of paragraphs diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfSection.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfSection.java index 4b7f8f677..88ab8ec2d 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfSection.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfSection.java @@ -26,8 +26,8 @@ package org.apache.fop.render.rtf.rtflib.rtfdoc; * the FOP project. */ -import java.io.Writer; import java.io.IOException; +import java.io.Writer; /** Models a section in an RTF document * @author Bertrand Delacretaz bdelacretaz@codeconsult.ch diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfStringConverter.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfStringConverter.java index 9afe35b29..d7774f2ed 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfStringConverter.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfStringConverter.java @@ -26,10 +26,10 @@ package org.apache.fop.render.rtf.rtflib.rtfdoc; * the FOP project. */ -import java.util.Map; -import java.util.HashMap; import java.io.IOException; import java.io.Writer; +import java.util.HashMap; +import java.util.Map; /** Converts java Strings according to RTF conventions * @author Bertrand Delacretaz bdelacretaz@codeconsult.ch diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfStyleSheetTable.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfStyleSheetTable.java index 30dee96d7..678508607 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfStyleSheetTable.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfStyleSheetTable.java @@ -26,10 +26,10 @@ package org.apache.fop.render.rtf.rtflib.rtfdoc; * the FOP project. */ -import java.util.Vector; -import java.util.Hashtable; import java.io.IOException; +import java.util.Hashtable; import java.util.Iterator; +import java.util.Vector; /** * Singelton of the RTF style sheet table. diff --git a/src/java/org/apache/fop/render/rtf/rtflib/tools/TableContext.java b/src/java/org/apache/fop/render/rtf/rtflib/tools/TableContext.java index 96d65ad12..3cdd454f5 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/tools/TableContext.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/tools/TableContext.java @@ -21,8 +21,9 @@ package org.apache.fop.render.rtf.rtflib.tools; import java.util.List; -import org.apache.commons.logging.impl.SimpleLog; import org.apache.commons.logging.Log; +import org.apache.commons.logging.impl.SimpleLog; + import org.apache.fop.render.rtf.rtflib.rtfdoc.ITableColumnsInfo; import org.apache.fop.render.rtf.rtflib.rtfdoc.RtfAttributes; diff --git a/src/java/org/apache/fop/render/txt/TXTRendererConfigurator.java b/src/java/org/apache/fop/render/txt/TXTRendererConfigurator.java index f2c47735f..59c3bf5e6 100644 --- a/src/java/org/apache/fop/render/txt/TXTRendererConfigurator.java +++ b/src/java/org/apache/fop/render/txt/TXTRendererConfigurator.java @@ -20,6 +20,7 @@ package org.apache.fop.render.txt; import org.apache.avalon.framework.configuration.Configuration; + import org.apache.fop.apps.FOPException; import org.apache.fop.apps.FOUserAgent; import org.apache.fop.render.PrintRendererConfigurator; diff --git a/src/java/org/apache/fop/render/xml/XMLXMLHandler.java b/src/java/org/apache/fop/render/xml/XMLXMLHandler.java index d1cf1cf9a..65a3aa026 100644 --- a/src/java/org/apache/fop/render/xml/XMLXMLHandler.java +++ b/src/java/org/apache/fop/render/xml/XMLXMLHandler.java @@ -19,13 +19,13 @@ package org.apache.fop.render.xml; +import org.xml.sax.ContentHandler; + import org.apache.fop.render.Renderer; -import org.apache.fop.render.XMLHandler; import org.apache.fop.render.RendererContext; +import org.apache.fop.render.XMLHandler; import org.apache.fop.util.DOM2SAX; -import org.xml.sax.ContentHandler; - /** * XML handler for the XML renderer. */ diff --git a/src/java/org/apache/fop/servlet/FopPrintServlet.java b/src/java/org/apache/fop/servlet/FopPrintServlet.java index 5c243ecae..3972b6fec 100644 --- a/src/java/org/apache/fop/servlet/FopPrintServlet.java +++ b/src/java/org/apache/fop/servlet/FopPrintServlet.java @@ -24,10 +24,10 @@ import java.io.PrintWriter; import javax.servlet.http.HttpServletResponse; -import javax.xml.transform.Transformer; -import javax.xml.transform.TransformerException; import javax.xml.transform.Result; import javax.xml.transform.Source; +import javax.xml.transform.Transformer; +import javax.xml.transform.TransformerException; import javax.xml.transform.sax.SAXResult; import org.apache.fop.apps.FOPException; diff --git a/src/java/org/apache/fop/svg/ACIUtils.java b/src/java/org/apache/fop/svg/ACIUtils.java index 91361432a..64552b303 100644 --- a/src/java/org/apache/fop/svg/ACIUtils.java +++ b/src/java/org/apache/fop/svg/ACIUtils.java @@ -21,19 +21,20 @@ package org.apache.fop.svg; import java.awt.font.TextAttribute; import java.text.AttributedCharacterIterator; -import java.text.CharacterIterator; import java.text.AttributedCharacterIterator.Attribute; +import java.text.CharacterIterator; import java.util.List; import java.util.Map; -import java.util.Set; import java.util.Map.Entry; +import java.util.Set; + +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; import org.apache.batik.bridge.SVGFontFamily; import org.apache.batik.gvt.font.GVTFont; import org.apache.batik.gvt.font.GVTFontFamily; import org.apache.batik.gvt.text.GVTAttributedCharacterIterator; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; import org.apache.fop.fonts.Font; import org.apache.fop.fonts.FontInfo; diff --git a/src/java/org/apache/fop/svg/AbstractFOPTextPainter.java b/src/java/org/apache/fop/svg/AbstractFOPTextPainter.java index 77179b381..49f5a1b75 100644 --- a/src/java/org/apache/fop/svg/AbstractFOPTextPainter.java +++ b/src/java/org/apache/fop/svg/AbstractFOPTextPainter.java @@ -33,6 +33,9 @@ import java.text.CharacterIterator; import java.util.Iterator; import java.util.List; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + import org.apache.batik.dom.svg.SVGOMTextElement; import org.apache.batik.gvt.TextNode; import org.apache.batik.gvt.TextPainter; @@ -40,8 +43,6 @@ import org.apache.batik.gvt.renderer.StrokingTextPainter; import org.apache.batik.gvt.text.GVTAttributedCharacterIterator; import org.apache.batik.gvt.text.Mark; import org.apache.batik.gvt.text.TextPaintInfo; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; import org.apache.fop.afp.AFPGraphics2D; import org.apache.fop.fonts.Font; diff --git a/src/java/org/apache/fop/svg/AbstractFOPTranscoder.java b/src/java/org/apache/fop/svg/AbstractFOPTranscoder.java index c079a80e3..e04bf0d35 100644 --- a/src/java/org/apache/fop/svg/AbstractFOPTranscoder.java +++ b/src/java/org/apache/fop/svg/AbstractFOPTranscoder.java @@ -32,6 +32,10 @@ import org.apache.avalon.framework.configuration.Configurable; import org.apache.avalon.framework.configuration.Configuration; import org.apache.avalon.framework.configuration.ConfigurationException; import org.apache.avalon.framework.configuration.DefaultConfiguration; + +import org.apache.commons.logging.Log; +import org.apache.commons.logging.impl.SimpleLog; + import org.apache.batik.bridge.UserAgent; import org.apache.batik.dom.svg.SVGDOMImplementation; import org.apache.batik.dom.util.DocumentFactory; @@ -44,8 +48,6 @@ import org.apache.batik.transcoder.keys.BooleanKey; import org.apache.batik.transcoder.keys.FloatKey; import org.apache.batik.util.ParsedURL; import org.apache.batik.util.SVGConstants; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.impl.SimpleLog; import org.apache.xmlgraphics.image.GraphicsConstants; import org.apache.xmlgraphics.image.loader.ImageContext; diff --git a/src/java/org/apache/fop/svg/NativeTextPainter.java b/src/java/org/apache/fop/svg/NativeTextPainter.java index b641337de..4513e0101 100644 --- a/src/java/org/apache/fop/svg/NativeTextPainter.java +++ b/src/java/org/apache/fop/svg/NativeTextPainter.java @@ -24,11 +24,12 @@ import java.io.IOException; import java.text.AttributedCharacterIterator; import java.util.List; -import org.apache.batik.gvt.renderer.StrokingTextPainter; -import org.apache.batik.gvt.text.TextSpanLayout; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.apache.batik.gvt.renderer.StrokingTextPainter; +import org.apache.batik.gvt.text.TextSpanLayout; + import org.apache.fop.fonts.Font; import org.apache.fop.fonts.FontInfo; import org.apache.fop.util.CharUtilities; diff --git a/src/java/org/apache/fop/svg/PDFBatikFlowTextElementBridge.java b/src/java/org/apache/fop/svg/PDFBatikFlowTextElementBridge.java index d167f5de4..90dd9f304 100644 --- a/src/java/org/apache/fop/svg/PDFBatikFlowTextElementBridge.java +++ b/src/java/org/apache/fop/svg/PDFBatikFlowTextElementBridge.java @@ -23,6 +23,7 @@ import org.apache.batik.extension.svg.BatikFlowTextElementBridge; import org.apache.batik.gvt.GraphicsNode; import org.apache.batik.gvt.TextNode; import org.apache.batik.gvt.TextPainter; + import org.apache.fop.fonts.FontInfo; /** diff --git a/src/java/org/apache/fop/svg/PDFFlowExtTextPainter.java b/src/java/org/apache/fop/svg/PDFFlowExtTextPainter.java index 1c85a2899..0f11e99bf 100644 --- a/src/java/org/apache/fop/svg/PDFFlowExtTextPainter.java +++ b/src/java/org/apache/fop/svg/PDFFlowExtTextPainter.java @@ -24,6 +24,7 @@ import java.util.List; import org.apache.batik.extension.svg.FlowExtTextPainter; import org.apache.batik.gvt.TextNode; + import org.apache.fop.fonts.FontInfo; /** diff --git a/src/java/org/apache/fop/svg/PDFFlowTextPainter.java b/src/java/org/apache/fop/svg/PDFFlowTextPainter.java index 5b307ce83..7b07ec297 100644 --- a/src/java/org/apache/fop/svg/PDFFlowTextPainter.java +++ b/src/java/org/apache/fop/svg/PDFFlowTextPainter.java @@ -24,6 +24,7 @@ import java.util.List; import org.apache.batik.gvt.TextNode; import org.apache.batik.gvt.flow.FlowTextPainter; + import org.apache.fop.fonts.FontInfo; /** diff --git a/src/java/org/apache/fop/svg/PDFGraphicsDevice.java b/src/java/org/apache/fop/svg/PDFGraphicsDevice.java index 538dd16c2..43658fd6d 100644 --- a/src/java/org/apache/fop/svg/PDFGraphicsDevice.java +++ b/src/java/org/apache/fop/svg/PDFGraphicsDevice.java @@ -19,9 +19,9 @@ package org.apache.fop.svg; -import java.awt.GraphicsDevice; -import java.awt.GraphicsConfiguration; import java.awt.GraphicsConfigTemplate; +import java.awt.GraphicsConfiguration; +import java.awt.GraphicsDevice; /** * This implements the GraphicsDevice interface as appropriate for diff --git a/src/java/org/apache/fop/svg/PDFSVGFlowRootElementBridge.java b/src/java/org/apache/fop/svg/PDFSVGFlowRootElementBridge.java index d313e6cc4..7d2b947e7 100644 --- a/src/java/org/apache/fop/svg/PDFSVGFlowRootElementBridge.java +++ b/src/java/org/apache/fop/svg/PDFSVGFlowRootElementBridge.java @@ -23,6 +23,7 @@ import org.apache.batik.bridge.svg12.SVGFlowRootElementBridge; import org.apache.batik.gvt.GraphicsNode; import org.apache.batik.gvt.TextNode; import org.apache.batik.gvt.TextPainter; + import org.apache.fop.fonts.FontInfo; /** diff --git a/src/java/org/apache/fop/svg/PDFTranscoder.java b/src/java/org/apache/fop/svg/PDFTranscoder.java index 8cf396ae5..04b1b5497 100644 --- a/src/java/org/apache/fop/svg/PDFTranscoder.java +++ b/src/java/org/apache/fop/svg/PDFTranscoder.java @@ -28,6 +28,7 @@ import org.w3c.dom.Document; import org.w3c.dom.svg.SVGLength; import org.apache.avalon.framework.configuration.Configuration; + import org.apache.batik.bridge.BridgeContext; import org.apache.batik.bridge.UnitProcessor; import org.apache.batik.bridge.UserAgent; diff --git a/src/java/org/apache/fop/tools/TestConverter.java b/src/java/org/apache/fop/tools/TestConverter.java index 0c6e09bd0..f453fecdf 100644 --- a/src/java/org/apache/fop/tools/TestConverter.java +++ b/src/java/org/apache/fop/tools/TestConverter.java @@ -26,17 +26,18 @@ import java.util.Map; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; -import org.apache.fop.apps.FopFactory; -import org.apache.fop.apps.FOUserAgent; -import org.apache.fop.apps.MimeConstants; -import org.apache.fop.cli.InputHandler; -import org.apache.fop.tools.anttasks.FileCompare; import org.w3c.dom.Document; import org.w3c.dom.Node; import org.w3c.dom.NodeList; import org.apache.commons.logging.impl.SimpleLog; +import org.apache.fop.apps.FOUserAgent; +import org.apache.fop.apps.FopFactory; +import org.apache.fop.apps.MimeConstants; +import org.apache.fop.cli.InputHandler; +import org.apache.fop.tools.anttasks.FileCompare; + /** * TestConverter is used to process a set of tests specified in * a testsuite. diff --git a/src/java/org/apache/fop/tools/anttasks/FileCompare.java b/src/java/org/apache/fop/tools/anttasks/FileCompare.java index a50f9801e..462049907 100644 --- a/src/java/org/apache/fop/tools/anttasks/FileCompare.java +++ b/src/java/org/apache/fop/tools/anttasks/FileCompare.java @@ -19,16 +19,16 @@ package org.apache.fop.tools.anttasks; -import java.util.Date; -import java.util.List; -import java.util.StringTokenizer; import java.io.BufferedInputStream; import java.io.File; import java.io.IOException; import java.io.PrintWriter; +import java.text.DateFormat; +import java.util.Date; +import java.util.List; +import java.util.StringTokenizer; import org.apache.tools.ant.BuildException; -import java.text.DateFormat; /** * This class is an extension of Ant, a script utility from diff --git a/src/java/org/apache/fop/tools/anttasks/RunTest.java b/src/java/org/apache/fop/tools/anttasks/RunTest.java index 1e1a959ed..6a959d758 100644 --- a/src/java/org/apache/fop/tools/anttasks/RunTest.java +++ b/src/java/org/apache/fop/tools/anttasks/RunTest.java @@ -19,21 +19,18 @@ package org.apache.fop.tools.anttasks; -// Ant -import org.apache.tools.ant.BuildException; -import org.apache.tools.ant.Task; - -// Java import java.io.File; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; -import java.net.URLClassLoader; -import java.net.URL; import java.net.MalformedURLException; +import java.net.URL; +import java.net.URLClassLoader; import java.util.ArrayList; import java.util.Iterator; import java.util.Map; +import org.apache.tools.ant.BuildException; +import org.apache.tools.ant.Task; /** * Testing ant task. diff --git a/src/java/org/apache/fop/util/ColorSpaceCache.java b/src/java/org/apache/fop/util/ColorSpaceCache.java index 63db937a0..246477f6b 100644 --- a/src/java/org/apache/fop/util/ColorSpaceCache.java +++ b/src/java/org/apache/fop/util/ColorSpaceCache.java @@ -30,10 +30,10 @@ import javax.xml.transform.stream.StreamSource; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; -import org.apache.xmlgraphics.java2d.color.profile.ColorProfileUtil; import org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent; import org.apache.xmlgraphics.java2d.color.RenderingIntent; +import org.apache.xmlgraphics.java2d.color.profile.ColorProfileUtil; /** * Map with cached ICC based ColorSpace objects. diff --git a/src/java/org/apache/fop/util/LogUtil.java b/src/java/org/apache/fop/util/LogUtil.java index 664667a76..acecca2ee 100644 --- a/src/java/org/apache/fop/util/LogUtil.java +++ b/src/java/org/apache/fop/util/LogUtil.java @@ -20,6 +20,7 @@ package org.apache.fop.util; import org.apache.commons.logging.Log; + import org.apache.fop.apps.FOPException; /** diff --git a/src/sandbox/org/apache/fop/render/mif/MIFHandler.java b/src/sandbox/org/apache/fop/render/mif/MIFHandler.java index 34eb7dc8d..cfc86edc7 100644 --- a/src/sandbox/org/apache/fop/render/mif/MIFHandler.java +++ b/src/sandbox/org/apache/fop/render/mif/MIFHandler.java @@ -19,12 +19,14 @@ package org.apache.fop.render.mif; -// Java import java.io.IOException; import java.io.OutputStream; +import org.xml.sax.SAXException; + import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; + import org.apache.fop.apps.FOUserAgent; import org.apache.fop.fo.FOEventHandler; import org.apache.fop.fo.flow.BasicLink; @@ -51,7 +53,6 @@ import org.apache.fop.fo.pagination.PageSequenceMaster; import org.apache.fop.fo.pagination.SimplePageMaster; import org.apache.fop.fonts.FontSetup; import org.apache.fop.render.DefaultFontResolver; -import org.xml.sax.SAXException; // TODO: do we really want every method throwing a SAXException diff --git a/src/sandbox/org/apache/fop/render/svg/SVGRenderer.java b/src/sandbox/org/apache/fop/render/svg/SVGRenderer.java index 0e575c736..9cbc1662d 100644 --- a/src/sandbox/org/apache/fop/render/svg/SVGRenderer.java +++ b/src/sandbox/org/apache/fop/render/svg/SVGRenderer.java @@ -29,13 +29,14 @@ import java.io.Writer; import org.w3c.dom.DOMImplementation; import org.w3c.dom.Document; -import org.apache.batik.dom.GenericDOMImplementation; -import org.apache.batik.svggen.SVGGeneratorContext; -import org.apache.batik.svggen.SVGGraphics2D; import org.apache.commons.io.IOUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.apache.batik.dom.GenericDOMImplementation; +import org.apache.batik.svggen.SVGGeneratorContext; +import org.apache.batik.svggen.SVGGraphics2D; + import org.apache.fop.apps.FOUserAgent; import org.apache.fop.apps.MimeConstants; import org.apache.fop.area.PageViewport; diff --git a/src/sandbox/org/apache/fop/render/svg/SVGSVGHandler.java b/src/sandbox/org/apache/fop/render/svg/SVGSVGHandler.java index c46c35b99..57079bf03 100644 --- a/src/sandbox/org/apache/fop/render/svg/SVGSVGHandler.java +++ b/src/sandbox/org/apache/fop/render/svg/SVGSVGHandler.java @@ -19,12 +19,6 @@ package org.apache.fop.render.svg; -import org.apache.batik.dom.svg.SVGDOMImplementation; -import org.apache.batik.dom.util.DOMUtilities; -import org.apache.batik.dom.util.XMLSupport; -import org.apache.fop.render.Renderer; -import org.apache.fop.render.RendererContext; -import org.apache.fop.render.XMLHandler; import org.w3c.dom.DOMImplementation; import org.w3c.dom.Element; import org.w3c.dom.Node; @@ -32,6 +26,14 @@ import org.w3c.dom.svg.SVGDocument; import org.w3c.dom.svg.SVGElement; import org.w3c.dom.svg.SVGSVGElement; +import org.apache.batik.dom.svg.SVGDOMImplementation; +import org.apache.batik.dom.util.DOMUtilities; +import org.apache.batik.dom.util.XMLSupport; + +import org.apache.fop.render.Renderer; +import org.apache.fop.render.RendererContext; +import org.apache.fop.render.XMLHandler; + /** The svg:svg element handler. */ public class SVGSVGHandler implements XMLHandler, SVGRendererContextConstants { -- 2.39.5