This commit is contained in:
Dmitry Jemerov
2009-09-10 20:21:16 +04:00
parent 72f81ba46b
commit b7e66aee44
170 changed files with 13 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
public class Test {
public Object foo() {
Object result = null; // line1
if (newMethod()) return result;
if (test3()) return result; // line4
return result;
}
private boolean newMethod() {
Object result;
if (test1()) return true;
if (test2()) return true;
return false;
}
public int foo1() {
Object result = null; // line1
if (newMethod()) return 1;
if (test3()) return 2; // line4
return 3;
}
private boolean test1() {
return false;
}
private boolean test2() {
return false;
}
private boolean test3() {
return false;
}
}