mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Final field referenced from anonymous class argument list: continue search instead of return
Fixed: IDEA-208030 False positive Variable might not have been initialized
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
import java.util.Date;
|
||||
|
||||
class C {
|
||||
private final String s;
|
||||
|
||||
C(String s) {
|
||||
this.s = s;
|
||||
}
|
||||
|
||||
Object m() {
|
||||
return new Object() {
|
||||
private final Date d = new Date(s) {}; // reference to s is legal
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user