butterfly
butterfly copied to clipboard
Improve contract in executeIf and executeUnless
The contract (API, javadoc and validation) in executeIf
and executeUnless
, under TransformationUtility
, have to be improved.
Here are the rules:
- It must accept ONLY booleans
- It must declare clearly what happens if a non boolean value is passed
- It must declare clearly what happens if a null is passed
- It must have built-in validation to check non booleans or null values