The @SuppressWarnings Annotation - "fallthrough"5:30 with Chris Ramacciotti
In a switch statement with many cases, it can be easy to accidentally leave off a
break statement. And in some cases, this may be done intentionally to save a few lines of code. We can use the
@SuppressWarnings annotation to control the compiler warnings about these scenarios when a
break statement is missing and execution "falls through" to the next case.
You need to sign up for Treehouse in order to download course files.Sign up