mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
FinalVariableMightNotHaveBeenInitializedInsideLambda: added separate initializer test
This commit is contained in:
+4
@@ -94,6 +94,10 @@ class TestThisQualified {
|
||||
|
||||
final Runnable r = () -> System.out.println(<error descr="Variable 'this.s' might not have been initialized">this.s</error>.length());
|
||||
final Runnable r2 = () -> System.out.println(this.r2);
|
||||
final Runnable r3;
|
||||
{
|
||||
r3 = () -> System.out.println(<error descr="Variable 'this.r3' might not have been initialized">this.r3</error>);
|
||||
}
|
||||
|
||||
public TestThisQualified() {
|
||||
s = "";
|
||||
|
||||
Reference in New Issue
Block a user