oss-generic / process

The OSS-Generic Reference Process
https://oss-generic.github.io/process/
MIT License
6 stars 19 forks source link

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

Open damithc opened 6 years ago

damithc commented 6 years ago

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.