From 09730f5e6f4e37c558c2040fbaac69194c07c8f4 Mon Sep 17 00:00:00 2001 From: erik Date: Sat, 25 Mar 2006 19:11:00 +0000 Subject: [PATCH] --- crawler/kiss/src/org/wamblee/crawler/kiss/guide/Time.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())); -- 2.31.1