mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
do not skip control flow for unreachable code (IDEA-87654)
This commit is contained in:
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user