diff options
author | Simon Steiner <ssteiner@apache.org> | 2016-09-16 11:17:35 +0000 |
---|---|---|
committer | Simon Steiner <ssteiner@apache.org> | 2016-09-16 11:17:35 +0000 |
commit | 46b7e0614c3251dbb50ea97211d8d79af3dedade (patch) | |
tree | e486dff4f9b4671e698ead8f9bc05660c33edd3d /fop-events/src/main/java/org/apache/fop/events/DefaultEventBroadcaster.java | |
parent | 36d81a0a715e65525e326c6911ac4859fec63968 (diff) | |
download | xmlgraphics-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.java | 4 |
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; |