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.

Reply via email to