From: erik Date: Fri, 31 Mar 2006 09:17:45 +0000 (+0000) Subject: (no commit message) X-Git-Tag: BEFORE_MAVEN_MIGRATION~116 X-Git-Url: http://wamblee.org/gitweb/?a=commitdiff_plain;h=dcb1889736843d7af146fe6107d81efff9a6575b;p=utils --- diff --git a/crawler/kiss/src/org/wamblee/crawler/kiss/guide/Program.java b/crawler/kiss/src/org/wamblee/crawler/kiss/guide/Program.java index 9f63ac4e..3d6065f5 100644 --- a/crawler/kiss/src/org/wamblee/crawler/kiss/guide/Program.java +++ b/crawler/kiss/src/org/wamblee/crawler/kiss/guide/Program.java @@ -52,7 +52,7 @@ public class Program { * Lexicographical comparison of programs based on (time, title, channel). * */ - public static class TimeSorter implements Comparator { + public static class TimeComparator implements Comparator { /** * Lexicographical comparison based on start time, program name, and diff --git a/crawler/kiss/src/org/wamblee/crawler/kiss/main/ProgramActionExecutor.java b/crawler/kiss/src/org/wamblee/crawler/kiss/main/ProgramActionExecutor.java index c19b6473..fae06bda 100644 --- a/crawler/kiss/src/org/wamblee/crawler/kiss/main/ProgramActionExecutor.java +++ b/crawler/kiss/src/org/wamblee/crawler/kiss/main/ProgramActionExecutor.java @@ -71,7 +71,7 @@ public class ProgramActionExecutor { // over the priorities will go from higher priority to lower priority. Set programs = _showsToRecord.get(-aPriority); if (programs == null) { - programs = new TreeSet(new Program.TimeSorter()); + programs = new TreeSet(new Program.TimeComparator()); _showsToRecord.put(-aPriority, programs); } programs.add(aProgram); diff --git a/crawler/kiss/src/org/wamblee/crawler/kiss/main/Report.java b/crawler/kiss/src/org/wamblee/crawler/kiss/main/Report.java index 84014773..a3d75fea 100644 --- a/crawler/kiss/src/org/wamblee/crawler/kiss/main/Report.java +++ b/crawler/kiss/src/org/wamblee/crawler/kiss/main/Report.java @@ -67,7 +67,7 @@ public class Report { RecordingResult.class); for (RecordingResult result : RecordingResult.values()) { _recordings.put(result, new TreeSet( - new Program.TimeSorter())); + new Program.TimeComparator())); } _messages = new ArrayList(); } @@ -109,7 +109,7 @@ public class Report { LOG.info("category = '" + aCategory + "', program: " + aProgram); Set programs = _interestingShows.get(aCategory); if (programs == null) { - programs = new TreeSet(new Program.TimeSorter()); + programs = new TreeSet(new Program.TimeComparator()); _interestingShows.put(aCategory, programs); } programs.add(aProgram);