Files
openide/java/java-tests/testData/codeInsight/createSwitch/noPatternMatching.java
T
Bas Leijdekkers b46f3009ce IDEA-390428 [java]: allow creating switch statement from any class type
when patterns in switch are available

GitOrigin-RevId: 1a3458be17a41b492fbae86e186c8792c46a2b12
2026-06-12 20:33:30 +00:00

8 lines
252 B
Java

class X {
public static double getPerimeter(Shape shape) throws IllegalArgumentException {
shape<caret>
}
}
interface Shape { }
record Rectangle(double length, double width) implements Shape { }
record Circle(double radius) implements Shape { }