From: erik Date: Sat, 25 Mar 2006 19:11:00 +0000 (+0000) Subject: (no commit message) X-Git-Tag: BEFORE_MAVEN_MIGRATION~155 X-Git-Url: http://wamblee.org/gitweb/?a=commitdiff_plain;h=09730f5e6f4e37c558c2040fbaac69194c07c8f4;p=utils --- diff --git a/crawler/kiss/src/org/wamblee/crawler/kiss/guide/Time.java b/crawler/kiss/src/org/wamblee/crawler/kiss/guide/Time.java index 2a15073b..2d05bac1 100644 --- a/crawler/kiss/src/org/wamblee/crawler/kiss/guide/Time.java +++ b/crawler/kiss/src/org/wamblee/crawler/kiss/guide/Time.java @@ -126,7 +126,7 @@ public class Time implements Comparable { */ public int compareTo(Object aObject) { if (!(aObject instanceof Time)) { - throw new RuntimeException("object not an instance of Time"); + throw new IllegalArgumentException("object not an instance of Time"); } Time time = (Time) aObject; return new Float(asFloat()).compareTo(new Float(time.asFloat()));