Skip to content
This repository was archived by the owner on May 28, 2022. It is now read-only.

Java coding standard: require an explanatory message for asserts false #101

Open
damithc opened this issue Nov 26, 2017 · 0 comments
Open
Labels

Comments

@damithc
Copy link
Contributor

damithc commented Nov 26, 2017

When using assert false to indicate branches that should not be reached, it is useful to include an explanatory message to justify it.
This is particularly a problem when grading student code where there are catch blocks with just an assert false inside them.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant