mirror of
https://github.com/github/codeql.git
synced 2026-06-13 08:51:20 +02:00
24 lines
237 B
Java
24 lines
237 B
Java
class Outer {
|
|
int x;
|
|
|
|
Outer(int x) {
|
|
// NOT OK
|
|
x = x; // $ Alert
|
|
// OK
|
|
this.x = x;
|
|
}
|
|
|
|
Outer() {}
|
|
|
|
class Inner {
|
|
int x;
|
|
// OK
|
|
{ x = Outer.this.x; }
|
|
}
|
|
|
|
class Inner2 extends Outer {
|
|
// OK
|
|
{ x = Outer.this.x; }
|
|
}
|
|
}
|