We are always taught to make sure we use a break in switch statements to avoid fall-through.
The Java compiler warns about these situations to help us not m
Is the annotation @SuppressWarnings (javadoc) what you are looking for?
@SuppressWarnings
For example:
@SuppressWarnings("unchecked") public void someMethod(...) { ... }