mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
23 lines
225 B
Java
23 lines
225 B
Java
class Outer {
|
|
int x;
|
|
|
|
Outer(int x) {
|
|
// NOT OK
|
|
x = x;
|
|
// OK
|
|
this.x = x;
|
|
}
|
|
|
|
Outer() {}
|
|
|
|
class Inner {
|
|
int x;
|
|
// OK
|
|
{ x = Outer.this.x; }
|
|
}
|
|
|
|
class Inner2 extends Outer {
|
|
// OK
|
|
{ x = Outer.this.x; }
|
|
}
|
|
} |