I've recently integrated checkstyle (
http://checkstyle.sourceforge.net/) into my build. It reports on a defined (with XML) coding convention. Thinking it would be good to follow the official Sun
Java Coding Convention, my build is now configured with the included Sun convention adherence report.
One of the deviations from convention it reports is with all of my exception constructors is "Parameter x should be final."
So this leads me to the question, why 'should' one declare passed exception parameters as final? I've never seen this before. I can sorta see the logic but am wondering if this is overkill or if maybe there is some other deep thought I am missing.
Thanks for your input.
Stu
[ August 29, 2006: Message edited by: Stu Thompson ]