Skip to content

Instantly share code, notes, and snippets.

@stolarczykt
Created January 25, 2020 06:33
Show Gist options
  • Save stolarczykt/71e8223f555a431b67cdba8ce30a9d56 to your computer and use it in GitHub Desktop.
Save stolarczykt/71e8223f555a431b67cdba8ce30a9d56 to your computer and use it in GitHub Desktop.
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