Ilja Preuss | 2 Apr 2003 14:56
Favicon

RE: RE: Auto importing

> if
> (request.getParameter("task").equals(IApplicationConstants.BACK))
> 
> instead of:
> 
> String task = request.getParameter("task");
> if ("BACK".equals(task))
> 
> What to do til Enums (in Java 1.5) arrive?

Why don't you declare the constant in the class it is used in?

Curious, Ilja

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get 128 Bit SSL Encryption!
http://us.click.yahoo.com/W7NydA/hdqFAA/VygGAA/umvwlB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
refactoring-unsubscribe <at> yahoogroups.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 


Gmane