branch | JDK-8226585-branch |
changeset 58109 | ee07de0d2c16 |
parent 55390 | 4a3c13548b9e |
--- a/src/jdk.compiler/share/classes/com/sun/tools/javac/code/Symbol.java Thu Sep 05 12:39:48 2019 +0200 +++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/code/Symbol.java Thu Sep 12 17:47:24 2019 +0200 @@ -378,6 +378,10 @@ return (flags_field & DEPRECATED_REMOVAL) != 0; } + public boolean isPreviewApi() { + return (flags_field & PREVIEW_API) != 0; + } + public boolean isDeprecatableViaAnnotation() { switch (getKind()) { case LOCAL_VARIABLE: