diff options
author | Glenn Adams <gadams@apache.org> | 2014-07-06 04:32:11 +0000 |
---|---|---|
committer | Glenn Adams <gadams@apache.org> | 2014-07-06 04:32:11 +0000 |
commit | 4823457e55c06f4e6c7ca85001eb307b3588a2f9 (patch) | |
tree | cb35a0da222d19eb9eafd5b68438e95e375d76da /src/java/org | |
parent | 11ec778e1fe394c0092228da3cadabd156432bb5 (diff) | |
download | xmlgraphics-fop-4823457e55c06f4e6c7ca85001eb307b3588a2f9.tar.gz xmlgraphics-fop-4823457e55c06f4e6c7ca85001eb307b3588a2f9.zip |
Fix compiler warnings.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1608161 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org')
16 files changed, 16 insertions, 30 deletions
diff --git a/src/java/org/apache/fop/ResourceEventProducer.java b/src/java/org/apache/fop/ResourceEventProducer.java index 18293ff06..994656287 100644 --- a/src/java/org/apache/fop/ResourceEventProducer.java +++ b/src/java/org/apache/fop/ResourceEventProducer.java @@ -50,8 +50,7 @@ public interface ResourceEventProducer extends EventProducer { * @return the requested event producer */ public static ResourceEventProducer get(EventBroadcaster broadcaster) { - return (ResourceEventProducer)broadcaster.getEventProducerFor( - ResourceEventProducer.class); + return broadcaster.getEventProducerFor(ResourceEventProducer.class); } } diff --git a/src/java/org/apache/fop/accessibility/AccessibilityEventProducer.java b/src/java/org/apache/fop/accessibility/AccessibilityEventProducer.java index 9a74b7ca8..50430dd19 100644 --- a/src/java/org/apache/fop/accessibility/AccessibilityEventProducer.java +++ b/src/java/org/apache/fop/accessibility/AccessibilityEventProducer.java @@ -39,8 +39,7 @@ public interface AccessibilityEventProducer extends EventProducer { * @return the event producer */ public static AccessibilityEventProducer get(EventBroadcaster broadcaster) { - return (AccessibilityEventProducer) broadcaster.getEventProducerFor( - AccessibilityEventProducer.class); + return broadcaster.getEventProducerFor(AccessibilityEventProducer.class); } } diff --git a/src/java/org/apache/fop/afp/AFPEventProducer.java b/src/java/org/apache/fop/afp/AFPEventProducer.java index 1b43400c5..58f3855b2 100644 --- a/src/java/org/apache/fop/afp/AFPEventProducer.java +++ b/src/java/org/apache/fop/afp/AFPEventProducer.java @@ -39,7 +39,7 @@ public interface AFPEventProducer extends EventProducer { * @return the event producer */ public static AFPEventProducer get(EventBroadcaster broadcaster) { - return (AFPEventProducer) broadcaster.getEventProducerFor(AFPEventProducer.class); + return broadcaster.getEventProducerFor(AFPEventProducer.class); } } diff --git a/src/java/org/apache/fop/area/AreaEventProducer.java b/src/java/org/apache/fop/area/AreaEventProducer.java index c4f5a7a35..da7c0acc1 100644 --- a/src/java/org/apache/fop/area/AreaEventProducer.java +++ b/src/java/org/apache/fop/area/AreaEventProducer.java @@ -41,8 +41,7 @@ public interface AreaEventProducer extends EventProducer { * @return the event producer */ public static AreaEventProducer get(EventBroadcaster broadcaster) { - return (AreaEventProducer)broadcaster.getEventProducerFor( - AreaEventProducer.class); + return broadcaster.getEventProducerFor(AreaEventProducer.class); } } diff --git a/src/java/org/apache/fop/fo/FOValidationEventProducer.java b/src/java/org/apache/fop/fo/FOValidationEventProducer.java index c79b2b803..a96cb3fe3 100644 --- a/src/java/org/apache/fop/fo/FOValidationEventProducer.java +++ b/src/java/org/apache/fop/fo/FOValidationEventProducer.java @@ -46,8 +46,7 @@ public interface FOValidationEventProducer extends EventProducer { * @return the event producer */ public static FOValidationEventProducer get(EventBroadcaster broadcaster) { - return (FOValidationEventProducer)broadcaster.getEventProducerFor( - FOValidationEventProducer.class); + return broadcaster.getEventProducerFor(FOValidationEventProducer.class); } } diff --git a/src/java/org/apache/fop/fo/flow/table/TableEventProducer.java b/src/java/org/apache/fop/fo/flow/table/TableEventProducer.java index 792151360..132728322 100644 --- a/src/java/org/apache/fop/fo/flow/table/TableEventProducer.java +++ b/src/java/org/apache/fop/fo/flow/table/TableEventProducer.java @@ -43,8 +43,7 @@ public interface TableEventProducer extends EventProducer { * @return the event producer */ public static TableEventProducer get(EventBroadcaster broadcaster) { - return (TableEventProducer)broadcaster.getEventProducerFor( - TableEventProducer.class); + return broadcaster.getEventProducerFor(TableEventProducer.class); } } diff --git a/src/java/org/apache/fop/fonts/FontEventProducer.java b/src/java/org/apache/fop/fonts/FontEventProducer.java index 60dbcc6ad..c6aaef662 100644 --- a/src/java/org/apache/fop/fonts/FontEventProducer.java +++ b/src/java/org/apache/fop/fonts/FontEventProducer.java @@ -40,7 +40,7 @@ public interface FontEventProducer extends EventProducer { * @return the event producer */ public static FontEventProducer get(EventBroadcaster broadcaster) { - return (FontEventProducer) broadcaster.getEventProducerFor(FontEventProducer.class); + return broadcaster.getEventProducerFor(FontEventProducer.class); } } diff --git a/src/java/org/apache/fop/layoutmgr/BlockLevelEventProducer.java b/src/java/org/apache/fop/layoutmgr/BlockLevelEventProducer.java index 387e5bbb9..6a407f266 100644 --- a/src/java/org/apache/fop/layoutmgr/BlockLevelEventProducer.java +++ b/src/java/org/apache/fop/layoutmgr/BlockLevelEventProducer.java @@ -43,8 +43,7 @@ public interface BlockLevelEventProducer extends EventProducer { * @return the event producer */ public static BlockLevelEventProducer get(EventBroadcaster broadcaster) { - return (BlockLevelEventProducer)broadcaster.getEventProducerFor( - BlockLevelEventProducer.class); + return broadcaster.getEventProducerFor(BlockLevelEventProducer.class); } } diff --git a/src/java/org/apache/fop/layoutmgr/inline/InlineLevelEventProducer.java b/src/java/org/apache/fop/layoutmgr/inline/InlineLevelEventProducer.java index 332e14935..f0b43e672 100644 --- a/src/java/org/apache/fop/layoutmgr/inline/InlineLevelEventProducer.java +++ b/src/java/org/apache/fop/layoutmgr/inline/InlineLevelEventProducer.java @@ -43,8 +43,7 @@ public interface InlineLevelEventProducer extends EventProducer { * @return the event producer */ public static InlineLevelEventProducer get(EventBroadcaster broadcaster) { - return (InlineLevelEventProducer)broadcaster.getEventProducerFor( - InlineLevelEventProducer.class); + return broadcaster.getEventProducerFor(InlineLevelEventProducer.class); } } diff --git a/src/java/org/apache/fop/render/RendererEventProducer.java b/src/java/org/apache/fop/render/RendererEventProducer.java index 1f4be8e7e..d8d8e5a23 100644 --- a/src/java/org/apache/fop/render/RendererEventProducer.java +++ b/src/java/org/apache/fop/render/RendererEventProducer.java @@ -41,8 +41,7 @@ public interface RendererEventProducer extends EventProducer { * @return the event producer */ public static RendererEventProducer get(EventBroadcaster broadcaster) { - return (RendererEventProducer)broadcaster.getEventProducerFor( - RendererEventProducer.class); + return broadcaster.getEventProducerFor(RendererEventProducer.class); } } diff --git a/src/java/org/apache/fop/render/bitmap/BitmapRendererEventProducer.java b/src/java/org/apache/fop/render/bitmap/BitmapRendererEventProducer.java index 9a0b3b7bc..54ce46290 100644 --- a/src/java/org/apache/fop/render/bitmap/BitmapRendererEventProducer.java +++ b/src/java/org/apache/fop/render/bitmap/BitmapRendererEventProducer.java @@ -41,8 +41,7 @@ public interface BitmapRendererEventProducer extends EventProducer { * @return the event producer */ public static BitmapRendererEventProducer get(EventBroadcaster broadcaster) { - return (BitmapRendererEventProducer)broadcaster.getEventProducerFor( - BitmapRendererEventProducer.class); + return broadcaster.getEventProducerFor(BitmapRendererEventProducer.class); } } diff --git a/src/java/org/apache/fop/render/pcl/PCLEventProducer.java b/src/java/org/apache/fop/render/pcl/PCLEventProducer.java index 520c63baa..7d2ed252e 100644 --- a/src/java/org/apache/fop/render/pcl/PCLEventProducer.java +++ b/src/java/org/apache/fop/render/pcl/PCLEventProducer.java @@ -39,8 +39,7 @@ public interface PCLEventProducer extends EventProducer { * @return the event producer */ public static PCLEventProducer get(EventBroadcaster broadcaster) { - return (PCLEventProducer)broadcaster.getEventProducerFor( - PCLEventProducer.class); + return broadcaster.getEventProducerFor(PCLEventProducer.class); } } diff --git a/src/java/org/apache/fop/render/pdf/PDFEventProducer.java b/src/java/org/apache/fop/render/pdf/PDFEventProducer.java index addf21666..802bb06b4 100644 --- a/src/java/org/apache/fop/render/pdf/PDFEventProducer.java +++ b/src/java/org/apache/fop/render/pdf/PDFEventProducer.java @@ -41,8 +41,7 @@ public interface PDFEventProducer extends EventProducer { * @return the event producer */ public static PDFEventProducer get(EventBroadcaster broadcaster) { - return (PDFEventProducer)broadcaster.getEventProducerFor( - PDFEventProducer.class); + return broadcaster.getEventProducerFor(PDFEventProducer.class); } } diff --git a/src/java/org/apache/fop/render/ps/PSEventProducer.java b/src/java/org/apache/fop/render/ps/PSEventProducer.java index bffdf2236..2a739a1e5 100644 --- a/src/java/org/apache/fop/render/ps/PSEventProducer.java +++ b/src/java/org/apache/fop/render/ps/PSEventProducer.java @@ -39,8 +39,7 @@ public interface PSEventProducer extends EventProducer { * @return the event producer */ public static PSEventProducer get(EventBroadcaster broadcaster) { - return (PSEventProducer)broadcaster.getEventProducerFor( - PSEventProducer.class); + return broadcaster.getEventProducerFor(PSEventProducer.class); } } diff --git a/src/java/org/apache/fop/render/rtf/RTFEventProducer.java b/src/java/org/apache/fop/render/rtf/RTFEventProducer.java index 5c12c4e2c..bab760d8d 100644 --- a/src/java/org/apache/fop/render/rtf/RTFEventProducer.java +++ b/src/java/org/apache/fop/render/rtf/RTFEventProducer.java @@ -42,8 +42,7 @@ public interface RTFEventProducer extends EventProducer { * @return the event producer */ public static RTFEventProducer get(EventBroadcaster broadcaster) { - return (RTFEventProducer)broadcaster.getEventProducerFor( - RTFEventProducer.class); + return broadcaster.getEventProducerFor(RTFEventProducer.class); } } diff --git a/src/java/org/apache/fop/svg/SVGEventProducer.java b/src/java/org/apache/fop/svg/SVGEventProducer.java index fd529ef04..ce8b0a422 100644 --- a/src/java/org/apache/fop/svg/SVGEventProducer.java +++ b/src/java/org/apache/fop/svg/SVGEventProducer.java @@ -41,8 +41,7 @@ public interface SVGEventProducer extends EventProducer { * @return the event producer */ public static SVGEventProducer get(EventBroadcaster broadcaster) { - return (SVGEventProducer)broadcaster.getEventProducerFor( - SVGEventProducer.class); + return broadcaster.getEventProducerFor(SVGEventProducer.class); } } |