aboutsummaryrefslogtreecommitdiffstats
path: root/fop-events/src/main/java/org/apache/fop/events/DefaultEventBroadcaster.java
diff options
context:
space:
mode:
authorSimon Steiner <ssteiner@apache.org>2016-09-16 11:17:35 +0000
committerSimon Steiner <ssteiner@apache.org>2016-09-16 11:17:35 +0000
commit46b7e0614c3251dbb50ea97211d8d79af3dedade (patch)
treee486dff4f9b4671e698ead8f9bc05660c33edd3d /fop-events/src/main/java/org/apache/fop/events/DefaultEventBroadcaster.java
parent36d81a0a715e65525e326c6911ac4859fec63968 (diff)
downloadxmlgraphics-fop-46b7e0614c3251dbb50ea97211d8d79af3dedade.tar.gz
xmlgraphics-fop-46b7e0614c3251dbb50ea97211d8d79af3dedade.zip
FOP-2648: Code cleanup, use foreach
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1761020 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'fop-events/src/main/java/org/apache/fop/events/DefaultEventBroadcaster.java')
-rw-r--r--fop-events/src/main/java/org/apache/fop/events/DefaultEventBroadcaster.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/fop-events/src/main/java/org/apache/fop/events/DefaultEventBroadcaster.java b/fop-events/src/main/java/org/apache/fop/events/DefaultEventBroadcaster.java
index 596a0a86b..24499ea35 100644
--- a/fop-events/src/main/java/org/apache/fop/events/DefaultEventBroadcaster.java
+++ b/fop-events/src/main/java/org/apache/fop/events/DefaultEventBroadcaster.java
@@ -104,8 +104,8 @@ public class DefaultEventBroadcaster implements EventBroadcaster {
}
private static synchronized EventProducerModel getEventProducerModel(Class clazz) {
- for (int i = 0, c = eventModels.size(); i < c; i++) {
- EventModel eventModel = (EventModel)eventModels.get(i);
+ for (Object eventModel1 : eventModels) {
+ EventModel eventModel = (EventModel) eventModel1;
EventProducerModel producerModel = eventModel.getProducer(clazz);
if (producerModel != null) {
return producerModel;