mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-07 07:55:31 +07:00
[extract method] IDEA-251837 fix texts GitOrigin-RevId: 37da2e7e8f83a4d85a87c644788a66ce6ea1e05f
23 lines
532 B
Java
23 lines
532 B
Java
import org.jetbrains.annotations.NotNull;
|
|
|
|
public class Test {
|
|
public static void main(String[] args) {
|
|
Result result = getResult();
|
|
int x;
|
|
x = (result.x() + result.y())/2;
|
|
|
|
System.out.println("Point(" + x + ", " + result.y() + ")");
|
|
}
|
|
|
|
private static @NotNull Result getResult() {
|
|
int x = 42;
|
|
int y = 0;
|
|
System.out.println();
|
|
System.out.println();
|
|
Result result = new Result(x, y);
|
|
return result;
|
|
}
|
|
|
|
private record Result(int x, int y) {
|
|
}
|
|
} |