[java-intentions] SplitFilterAction: add test for record patterns

IJ-CR-94735

GitOrigin-RevId: 81dd336174b6ebe4908a3df717ab2d8200c788ce
This commit is contained in:
Andrey.Cherkasov
2022-08-30 16:34:46 +04:00
committed by intellij-monorepo-bot
parent 68b1bcc2bb
commit 8c63208047
2 changed files with 11 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
// "Split into filter chain" "false"
import java.util.List;
class X {
void test(List<?> points) {
points.stream().filter(p -> p instanceof Point(double x, double y) &<caret>& x > y).filter(p -> p.hashCode() > 0).forEach(System.out::println);
}
}
record Point(double x, double y) {
}