mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 12:15:00 +00:00
[jdk21] Remove test for record patterns in for headers (removed in JEP 440)
This commit is contained in:
1 parent
cb76e67205
commit
1c2970be2d
3 files changed
+28
-1
No files matched your search
@@ -0,0 +1,14 @@
|
||||
// version 21:
|
||||
record Point(int x, int y) {
|
||||
}
|
||||
record Rectangle(Point upperLeft, Point lowerRight) {
|
||||
}
|
||||
|
||||
public class RecordPattern21 {
|
||||
void recordPattern(Object o) {
|
||||
if (o instanceof Point(int x, int y)) {
|
||||
}
|
||||
if (o instanceof Rectangle(Point(var x1, var y1), Point(int x2, int y2))) {
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user