From: erik Date: Sat, 25 Mar 2006 19:12:48 +0000 (+0000) Subject: (no commit message) X-Git-Tag: BEFORE_MAVEN_MIGRATION~154 X-Git-Url: http://wamblee.org/gitweb/?a=commitdiff_plain;h=dde8e6476bfbf590bc14953debe29312888399fe;p=utils --- diff --git a/crawler/kiss/src/org/wamblee/crawler/kiss/guide/AbstractVisitor.java b/crawler/kiss/src/org/wamblee/crawler/kiss/guide/AbstractVisitor.java index 4b27e4f1..01445907 100644 --- a/crawler/kiss/src/org/wamblee/crawler/kiss/guide/AbstractVisitor.java +++ b/crawler/kiss/src/org/wamblee/crawler/kiss/guide/AbstractVisitor.java @@ -37,8 +37,7 @@ public abstract class AbstractVisitor implements Visitor { * @param aChannel Channel to visit. */ public void visitChannel(Channel aChannel) { - List programs = aChannel.getPrograms(); - for (Program program: programs) { + for (Program program: aChannel.getPrograms() ) { program.accept(this); } } @@ -47,9 +46,8 @@ public abstract class AbstractVisitor implements Visitor { * Visits the TV guide by visiting all channels of the guide. * @param aGuide TV guide to visit. */ - public void visitTvGuide(TVGuide aGuide) { - List channels = aGuide.getChannels(); - for (Channel channel: channels) { + public void visitTvGuide(TVGuide aGuide) { + for (Channel channel: aGuide.getChannels()) { channel.accept(this); } }