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