mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
IDEA-169542 'Analyze Dataflow to Here' misses assignment to variables passed to anonymous classes
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
import javax.swing.*;
|
||||
|
||||
class Foo {
|
||||
void foo(String <caret>s) {
|
||||
}
|
||||
|
||||
void bar() {
|
||||
final String <flown11>res;
|
||||
res = <flown111>"a";
|
||||
SwingUtilities.invokeLater(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
foo(<flown1>res);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
class Foo1 {
|
||||
void foo() {
|
||||
String <caret>s = <flown1>bar();
|
||||
}
|
||||
|
||||
String bar() {
|
||||
String res;
|
||||
res = <flown111>"a";
|
||||
return <flown11>res;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user