mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-06-18 17:16:50 +07:00
5e222f56a9
This patch fixes the problems according to the code review, it includes: - inlining the trivial wrapper methods checkConstructorPreviewFeature, checkMethodCallPreviewFeatureAnnotation, checkTypePreviewFeatureAnnotation - applying ObjectUtils#tryCast in HighlightUtil#checkPackagePreviewFeatureAnnotation - simplifying HighlightVisitorImpl#visitImportStaticStatement by calling directly HighlightUtil#checkPreviewFeatureElement - generalizing HighlightVisitorImpl#visitReferenceExpression's check if the element is annotated with PreviewFeature Signed-off-by: Nikita Eshkeev <nikita.eshkeev@jetbrains.com> GitOrigin-RevId: 954ad1bbb26352d7d98581b3ad95a360569b0636
11 lines
651 B
Java
11 lines
651 B
Java
<error descr="Patterns in 'instanceof' are not supported at language level '9'">import org.myorg.preview.FromPreview;</error>
|
|
<error descr="Patterns in 'instanceof' are not supported at language level '9'">import static org.myorg.preview.FromPreview.f;</error>
|
|
<error descr="Patterns in 'instanceof' are not supported at language level '9'">import static org.myorg.preview.FromPreview.*;</error>
|
|
|
|
class Main {
|
|
static {
|
|
<error descr="Patterns in 'instanceof' are not supported at language level '9'">org.myorg.preview.FromPreview</error>.f();
|
|
<error descr="Patterns in 'instanceof' are not supported at language level '9'">f</error>();
|
|
}
|
|
}
|