mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
GitOrigin-RevId: 40a61db67d82d63a961679f65823568a5f7039b0
20 lines
476 B
Java
20 lines
476 B
Java
// "Fix all 'Pattern variable can be used' problems in file" "true"
|
|
class Main {
|
|
void foo(Object obj) {
|
|
if (obj instanceof Rect(Point(double x1, double y1), Point(double x2, double y2))) {
|
|
double s = ((x2)) + y2;
|
|
System.out.println(x1 + x1 + y1 + y2);
|
|
System.out.println(y1 + x1 + y2);
|
|
System.out.println(((x2)) + s);
|
|
System.out.println(y2);
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
record Point(double x, double y) {
|
|
}
|
|
|
|
record Rect(Point point1, Point point2) {
|
|
}
|