< prev index next >
test/langtools/tools/javac/diags/examples/PreviewFeatureUse.java
Print this page
*** 23,33 ****
//key: compiler.warn.preview.feature.use
//key: compiler.warn.preview.feature.use.plural
//key: compiler.misc.feature.diamond
//key: compiler.misc.feature.lambda
! //options: -Xlint:preview -XDforcePreview -source 12 --enable-preview
import java.util.ArrayList;
class PreviewFeatureUse {
void test() {
--- 23,33 ----
//key: compiler.warn.preview.feature.use
//key: compiler.warn.preview.feature.use.plural
//key: compiler.misc.feature.diamond
//key: compiler.misc.feature.lambda
! //options: -Xlint:preview -XDforcePreview -source 13 --enable-preview
import java.util.ArrayList;
class PreviewFeatureUse {
void test() {
< prev index next >