Personally, I'm a fan of any compile time checking :)

Cheers,
Tim
--
Tim Ruppert
HotWax Media
http://www.hotwaxmedia.com

o:801.649.6594
f:801.649.6595


On Oct 14, 2007, at 7:21 PM, Adam Heath wrote:

How does everyone feel about using enums in ofbiz? For pure java code,
they are a win.  For other code, that do something like:

==
myObject.someFunction(Constants.TYPE);
==

there shouldn't be any difference.  Once changed, instead of
Constants.TYPE being an int, or a String, it's a class that extends
Enum, so a recompile should be all that is nescessary. And using enums
will ensure that an invalid int(or whatever) can't be passed.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to