From dde8e6476bfbf590bc14953debe29312888399fe Mon Sep 17 00:00:00 2001 From: erik Date: Sat, 25 Mar 2006 19:12:48 +0000 Subject: [PATCH] --- .../org/wamblee/crawler/kiss/guide/AbstractVisitor.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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); } } -- 2.31.1