mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-09 23:00:08 +07:00
18 lines
260 B
Java
18 lines
260 B
Java
// "Encapsulate field" "true-preview"
|
|
|
|
class X {
|
|
private int x = 0;
|
|
|
|
public static int foo() {
|
|
X x = new X();
|
|
return x.getX();
|
|
}
|
|
|
|
public int getX() {
|
|
return x;
|
|
}
|
|
|
|
public void setX(int x) {
|
|
this.x = x;
|
|
}
|
|
} |