I am using eclipse Luna 4.4 I think it is not showing me warning for dead code.
It shows error for
if(false){
// Shows warning for dead code here
System.out.println("Dead Code");
}
but it doesn't show any warning if i say
boolean b = false;
if(b){
// Doesn't show warning for dead code here
System.out.println("Dead Code");
}
Somehow I have a little memory that it was giving warning on previous version don't know exactly which.
Once I was doing like
boolean b = false;
// code here
// forgot to make it true in some case
if(b){// do things here} // this gave me warning.
Do anyone know what happend here or is there any setting in preferences that can do this. Thank you in advance.