You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Rick Reumann <r...@reumann.net> on 2003/07/14 19:47:42 UTC

[OT] java coding standards question

I know this is totally OT (and it's not even Friday:), but does anyone
use the checkstyle plugin in Eclipse? I have it set up to the defaults
and I keep getting two warnings that I don't understand (and I've
searched Google etc.)..

I keep getting the following for my methods that throw
HofficeDaoException:

"Unable to get class information for HofficeDaoException."

I have no idea why I'm getting the above warning. The classes compile
fine and it seems fine that the method throws the Exception.


The second one I get is about "magic numbers." I've read about them but
I dont' understand why I would get a warning on this set up in a
class...

public static final int PERIOD_END_DATE_DAYS = -7;

I get the warning "7 is a magic number." I thought you should only get
that for non final primitive declarations?

If anyone has any ideas what's up please feel free to e-mail me off list
(or here).

Thanks,

-- 
Rick



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org