switch
statement
and used in another branch. Such declarations can be extremely confusing.
Example:
switch(i) {
case 2:
int x = 0;
break;
case 3:
x = 3;
System.out.println(x);
break;
}