Files
openide/java/java-tests/testData/refactoring/changeSignature/WithoutConflictsSwitchUsedDeconstruction_after.java
Mikhail Pyltsin 4b76fbce4f [java-inspection] IDEA-311157 deleting component doesn't check usages
GitOrigin-RevId: 55ef9a7d7fa7b96a8f54e91801060b7c3d44dd65
2024-12-02 18:59:47 +00:00

12 lines
238 B
Java

public class WithoutConflictsSwitchUsedDeconstruction {
public record Point(int a) {
void foo(Object obj) {
switch (obj) {
case Point(int x) when x > 10 -> {
}
default -> {
}
}
}
}
}