Author: adrianc
Date: Wed Feb 17 18:00:56 2010
New Revision: 911125

URL: http://svn.apache.org/viewvc?rev=911125&view=rev
Log:
Fixed catch clause in TimeDuration equals method.

Modified:
    ofbiz/trunk/framework/base/src/org/ofbiz/base/util/TimeDuration.java

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/TimeDuration.java
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/TimeDuration.java?rev=911125&r1=911124&r2=911125&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/TimeDuration.java 
(original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/TimeDuration.java Wed 
Feb 17 18:00:56 2010
@@ -173,7 +173,7 @@
             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;
     }
 


Reply via email to