mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 08:06:56 +07:00
15 lines
318 B
Java
15 lines
318 B
Java
class G {
|
|
private G foo;
|
|
private int <warning descr="Field can be converted to a local variable">bar</warning>;
|
|
|
|
public G(final G gFoo) {
|
|
foo = gFoo;
|
|
bar = 1;
|
|
System.out.println(this.bar);
|
|
|
|
G g = this;
|
|
while (g.foo != null) {
|
|
g = g.foo;
|
|
}
|
|
}
|
|
} |