FinalVariableMightNotHaveBeenInitializedInsideLambda: added separate initializer test

This commit is contained in:
Tagir Valeev
2018-02-08 12:31:34 +07:00
parent bf640e78a9
commit b9630248cd
@@ -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 = "";