Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example of control coupling
public void save(boolean validationRequired) {
if (validationRequired) {
validate();
store();
} else {
store();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment