From 276a0b2f6d6fda4fd0078e5d2ead3579f01eacbb Mon Sep 17 00:00:00 2001 From: Adrian Crum Date: Wed, 17 Feb 2010 18:00:56 +0000 Subject: [PATCH] Fixed catch clause in TimeDuration equals method. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@911125 13f79535-47bb-0310-9956-ffa450edef68 --- framework/base/src/org/ofbiz/base/util/TimeDuration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/base/src/org/ofbiz/base/util/TimeDuration.java b/framework/base/src/org/ofbiz/base/util/TimeDuration.java index bb86ac060f..fb8b82c892 100644 --- a/framework/base/src/org/ofbiz/base/util/TimeDuration.java +++ b/framework/base/src/org/ofbiz/base/util/TimeDuration.java @@ -173,7 +173,7 @@ public class TimeDuration implements Serializable, Comparable { return this.years == that.years && this.months == that.months && this.days == that.days && this.hours == that.hours && this.minutes == that.minutes && this.seconds == that.seconds && this.milliseconds == that.milliseconds; - } catch (Exception e) {} + } catch (ClassCastException e) {} return false; }