From 1f284348821d293f660ebbeb0e51b80ec0b84767 Mon Sep 17 00:00:00 2001 From: Glenn Adams Date: Fri, 2 Mar 2012 20:24:40 +0000 Subject: [PATCH] enable RedundantImport rule; fix violations git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1296437 13f79535-47bb-0310-9956-ffa450edef68 --- checkstyle-5.5.xml | 2 +- .../fop/complexscripts/bidi/GenerateBidiClass.java | 1 - .../apache/fop/complexscripts/bidi/BidiClass.java | 1 - .../fonts/OTFAdvancedTypographicTableReader.java | 12 ------------ .../org/apache/fop/pdf/DestinationComparator.java | 2 -- .../rtf/rtflib/rtfdoc/IRtfTextrunContainer.java | 1 - .../fop/render/rtf/rtflib/rtfdoc/RtfFootnote.java | 3 --- .../fop/render/rtf/rtflib/rtfdoc/RtfListItem.java | 2 -- .../fop/render/rtf/rtflib/rtfdoc/RtfListStyle.java | 3 --- .../render/rtf/rtflib/rtfdoc/RtfListStyleBullet.java | 3 --- .../render/rtf/rtflib/rtfdoc/RtfListStyleNumber.java | 3 --- .../render/rtf/rtflib/rtfdoc/RtfListStyleText.java | 3 --- 12 files changed, 1 insertion(+), 35 deletions(-) diff --git a/checkstyle-5.5.xml b/checkstyle-5.5.xml index 57ef8ae7f..293f11bb4 100644 --- a/checkstyle-5.5.xml +++ b/checkstyle-5.5.xml @@ -208,7 +208,7 @@ - + diff --git a/src/codegen/unicode/java/org/apache/fop/complexscripts/bidi/GenerateBidiClass.java b/src/codegen/unicode/java/org/apache/fop/complexscripts/bidi/GenerateBidiClass.java index 7b1a6bb5b..616ac1cae 100644 --- a/src/codegen/unicode/java/org/apache/fop/complexscripts/bidi/GenerateBidiClass.java +++ b/src/codegen/unicode/java/org/apache/fop/complexscripts/bidi/GenerateBidiClass.java @@ -30,7 +30,6 @@ import java.util.Iterator; import java.util.SortedSet; import java.util.TreeSet; -import org.apache.fop.complexscripts.bidi.BidiConstants; import org.apache.fop.util.License; // CSOFF: LineLength diff --git a/src/java/org/apache/fop/complexscripts/bidi/BidiClass.java b/src/java/org/apache/fop/complexscripts/bidi/BidiClass.java index 6e462eadc..d2c2bd2b9 100644 --- a/src/java/org/apache/fop/complexscripts/bidi/BidiClass.java +++ b/src/java/org/apache/fop/complexscripts/bidi/BidiClass.java @@ -20,7 +20,6 @@ package org.apache.fop.complexscripts.bidi; import java.util.Arrays; -import org.apache.fop.complexscripts.bidi.BidiConstants; // CSOFF: WhitespaceAfterCheck // CSOFF: LineLengthCheck diff --git a/src/java/org/apache/fop/complexscripts/fonts/OTFAdvancedTypographicTableReader.java b/src/java/org/apache/fop/complexscripts/fonts/OTFAdvancedTypographicTableReader.java index 539f9af30..5fe2be852 100644 --- a/src/java/org/apache/fop/complexscripts/fonts/OTFAdvancedTypographicTableReader.java +++ b/src/java/org/apache/fop/complexscripts/fonts/OTFAdvancedTypographicTableReader.java @@ -28,18 +28,6 @@ import java.util.Map; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; -import org.apache.fop.complexscripts.fonts.AdvancedTypographicTableFormatException; -import org.apache.fop.complexscripts.fonts.GlyphClassTable; -import org.apache.fop.complexscripts.fonts.GlyphCoverageTable; -import org.apache.fop.complexscripts.fonts.GlyphDefinitionSubtable; -import org.apache.fop.complexscripts.fonts.GlyphDefinitionTable; -import org.apache.fop.complexscripts.fonts.GlyphMappingTable; -import org.apache.fop.complexscripts.fonts.GlyphPositioningSubtable; -import org.apache.fop.complexscripts.fonts.GlyphPositioningTable; -import org.apache.fop.complexscripts.fonts.GlyphSubstitutionSubtable; -import org.apache.fop.complexscripts.fonts.GlyphSubstitutionTable; -import org.apache.fop.complexscripts.fonts.GlyphSubtable; -import org.apache.fop.complexscripts.fonts.GlyphTable; import org.apache.fop.fonts.truetype.FontFileReader; import org.apache.fop.fonts.truetype.TTFDirTabEntry; import org.apache.fop.fonts.truetype.TTFFile; diff --git a/src/java/org/apache/fop/pdf/DestinationComparator.java b/src/java/org/apache/fop/pdf/DestinationComparator.java index 0966853ea..dd8e3392f 100644 --- a/src/java/org/apache/fop/pdf/DestinationComparator.java +++ b/src/java/org/apache/fop/pdf/DestinationComparator.java @@ -19,8 +19,6 @@ package org.apache.fop.pdf; -import org.apache.fop.pdf.PDFDestination; - /** * Comparator class to enable comparing (and * hence sorting) of PDFDestination objects. diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/IRtfTextrunContainer.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/IRtfTextrunContainer.java index 528c05e70..e9c7307a2 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/IRtfTextrunContainer.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/IRtfTextrunContainer.java @@ -24,7 +24,6 @@ package org.apache.fop.render.rtf.rtflib.rtfdoc; */ import java.io.IOException; -import org.apache.fop.render.rtf.rtflib.rtfdoc.RtfTextrun; /** Interface which enables an implementing class to contain linear text runs. * @author Peter Herweg, pherweg@web.de 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 1a71ed670..d7ab4c716 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 @@ -23,9 +23,6 @@ package org.apache.fop.render.rtf.rtflib.rtfdoc; import java.io.Writer; import java.io.IOException; -//FOP -import org.apache.fop.render.rtf.rtflib.rtfdoc.RtfTextrun; - /** Model of an RTF footnote * @author Peter Herweg, pherweg@web.de * @author Marc Wilhelm Kuester 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 14b4b486f..53af6940f 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 @@ -29,8 +29,6 @@ package org.apache.fop.render.rtf.rtflib.rtfdoc; import java.io.Writer; import java.io.IOException; -import org.apache.fop.render.rtf.rtflib.rtfdoc.RtfTextrun; - /** Model of an RTF list item, which can contain RTF paragraphs * @author Bertrand Delacretaz bdelacretaz@codeconsult.ch * @author Andreas Putz a.putz@skynamics.com diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListStyle.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListStyle.java index e0f85ee88..910132fbb 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListStyle.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListStyle.java @@ -29,9 +29,6 @@ package org.apache.fop.render.rtf.rtflib.rtfdoc; //Java import java.io.IOException; -//FOP -import org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement; - /** * Class to handle list styles. */ diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListStyleBullet.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListStyleBullet.java index 958f359a1..9c7235352 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListStyleBullet.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListStyleBullet.java @@ -29,9 +29,6 @@ package org.apache.fop.render.rtf.rtflib.rtfdoc; //Java import java.io.IOException; -//FOP -import org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement; - /** * Class to handle bullet list style. */ diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListStyleNumber.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListStyleNumber.java index 6d35fee95..c03315715 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListStyleNumber.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListStyleNumber.java @@ -29,9 +29,6 @@ package org.apache.fop.render.rtf.rtflib.rtfdoc; //Java import java.io.IOException; -//FOP -import org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement; - /** * Class to handle number list style. */ diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListStyleText.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListStyleText.java index 8eb993e0d..e236ea4bd 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListStyleText.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListStyleText.java @@ -29,9 +29,6 @@ package org.apache.fop.render.rtf.rtflib.rtfdoc; //Java import java.io.IOException; -//FOP -import org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement; - /** * Class to handle text list style. */ -- 2.39.5