There is such a method:
public static void asd(){ return; int x = 20; System.out.println(x); } IDE (watched in netbins and eclipse) swears at the inaccessibility of the code after return;

but if you change the return; on if (true) return;
public static void asd(){ if(true) return; int x = 20; System.out.println(x); } NetBeans IDE stops swearing, and Eclipse simply displays the varning, and the compiler swallows the whole thing.

Question: why so? )) Thank