Skip to content
This repository was archived by the owner on May 28, 2022. It is now read-only.
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

@damithc

Description

@damithc

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions