Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-core-dev] Flagging unnecessary cast/instanceof operations

> Considering the addition of a compiler diagnosis to signal unnecessary
> cast/instanceof operations, I am wondering what the community thinks about
> the default setting for such an error.
> I am enclined to think that it should be a warning by default... if you
> have an opinion, please react.

I'd say warning as default.

Did anybody bring up the idea of compiler option profiles?  There could be a
default profile that has regular settings (I'd say the current defaults). 
Then there could be a performance profile which issues warnings for all
unnecessary code that isn't or can't be optimized away.  Then there could be a
be-sure profile that makes everything an error etc.

Regards

robert

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++

Jetzt ein- oder umsteigen und USB-Speicheruhr als Prämie sichern!



Back to the top