mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-23 16:20:55 +07:00
25 lines
315 B
Java
25 lines
315 B
Java
// "Move assignment to field declaration" "true-preview"
|
|
|
|
class X {
|
|
// Create default runnable
|
|
Object f = new Runnable() {
|
|
void x(int p) {
|
|
int f = p;
|
|
}
|
|
|
|
public void run() {
|
|
|
|
}
|
|
};
|
|
X() {
|
|
<caret> //
|
|
}
|
|
|
|
void x() {
|
|
int i = f;
|
|
}
|
|
|
|
void x2() {
|
|
f = 9;
|
|
}
|
|
} |