8330197: Make javac/diags/example release agnostic
Reviewed-by: jlahoda
This commit is contained in:
parent
da75e015b5
commit
a293bdff91
@ -24,7 +24,7 @@
|
||||
// key: compiler.err.default.and.both.boolean.values
|
||||
// key: compiler.note.preview.filename
|
||||
// key: compiler.note.preview.recompile
|
||||
// options: --enable-preview --source 23
|
||||
// options: --enable-preview --source ${jdk.version}
|
||||
public class DefaultAndBothBoolean {
|
||||
private int test(boolean sel) {
|
||||
return switch (sel) {
|
||||
|
@ -24,7 +24,7 @@
|
||||
// key: compiler.err.unconditional.pattern.and.both.boolean.values
|
||||
// key: compiler.note.preview.filename
|
||||
// key: compiler.note.preview.recompile
|
||||
// options: --enable-preview --source 23
|
||||
// options: --enable-preview --source ${jdk.version}
|
||||
public class UnconditionalPatternAndBothBoolean {
|
||||
private int test(boolean sel) {
|
||||
return switch (sel) {
|
||||
|
Loading…
Reference in New Issue
Block a user