do not skip control flow for unreachable code (IDEA-87654)

This commit is contained in:
anna
2012-07-05 11:02:17 +02:00
parent 27da3854d3
commit 961086a6d1
6 changed files with 50 additions and 5 deletions
@@ -1,6 +1,7 @@
class Test {
void foo() {
final String str = newMethod();
if (str == null) return;
new Runnable() {
public void run() {
System.out.println(str);
@@ -11,7 +12,7 @@ class Test {
private String newMethod() {
final String str = "";
if (str == "") {
return;
return null;
}
return str;
}