db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Fischer <fisc...@seitenbau.net>
Subject RE: Bunches of unnecessary casts to (Object) in org.apache.torque.util.Criteria
Date Tue, 15 Mar 2005 09:08:07 GMT




I have not looked in detail into it, but sometimes there are overloaded
methods and you have to do casts to decide which method to use. Ther might
also be superfluous casts.

Your patch did not make it through the list. If you want it applied, please
open a scarab issue.

    Thomas

"Ray Malanga" <ray@purejavasolutions.com> schrieb am 13.03.2005 20:34:04:

> I was looking at org.apache.torque.util.Criteria and there are a bunch of
> unnecessary casts to Object before calling other methods in Criteria or
> inherited from Hashmap.
> Was there a reason these Object instances were expicitly cast to Object
> instances?  Did the parameter type used to be an interface?
>
> If not, there's a patch attached to remove the superfluous casts in
> org.apache.torque.util.Criteria only.
>
> - Ray M
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-dev-help@db.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message