boolean t1 = switch (obj) {
case Long a[] -> true;
default -> false;
};
boolean t2 = switch (obj) {
case Double a[][][][] -> true;
default -> false;
};
if (obj instanceof Float a[][]) {
}
if (obj instanceof Integer a = Integer.valueOf(0)) {
}
case Long a[] -> true;
default -> false;
};
boolean t2 = switch (obj) {
case Double a[][][][] -> true;
default -> false;
};
if (obj instanceof Float a[][]) {
}
if (obj instanceof Integer a = Integer.valueOf(0)) {
}
- relates to
-
JDK-8302344 Compiler Implementation for Unnamed patterns and variables (Preview)
-
- Resolved
-