Java Tip: Replacing BooleansPosted: February 10, 2005
This is an obvious one. However, the ease of using booleans might mislead some into using many Booleans in the signature of a method. A better idea is to combine the Booleans into a Service mask.
An obvious disadvantage is the necessary marshalling/unmarshalling and the more complex error checking. Is the smaller, compact signature worth the extra effort?