Question: Sometimes when you are debugging, you have unreachable code fragment. Is there anyway to suppress the warning?

Answer: 
The only way to do this on any compiler is `@SuppressWarnings("all")`.

If you're using Eclipse, try `@SuppressWarnings("unused")`.
As [Cletus tells us](https://stackoverflow.com/questions/1205995/what-is-the-list-of-valid-suppresswarnings-warning-names-in-java/1206001#1206001),

> 
> It depends on your IDE or compiler.
> 
> 
> 

That said, at least for Eclipse, there is not a way to do this. With my Eclipse configuration, unreachable code causes a compile-time error, not just a warning. Also note this is different from "dead code," e.g.

```
if (false)
{
    // dead code here
}

```

for which Eclipse (by default) emits a warning, not an error.