mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-13 14:36:58 +07:00
This patch extracts PreviewFeatureVisitorBase to the top level class. In the visitor there used to be a special case for the new expression in order to reduce the number of warnings/errors, but it appeared to be useless, since the logic to deduce the preview feature element is too complicated. We might need to circle back to it if users complain about the number of warnings in their code. GitOrigin-RevId: 3355caedc7eae3de197f652cc6af7ae605f64971
13 lines
337 B
Java
13 lines
337 B
Java
package com.mycom;
|
|
|
|
@jdk.internal.PreviewFeature(feature = jdk.internal.PreviewFeature.Feature.SEALED_CLASSES)
|
|
public interface FirstPreviewFeature {
|
|
public static final class Outer {
|
|
public static final class Inner {
|
|
public void z() {}
|
|
}
|
|
}
|
|
void f();
|
|
static void g() {}
|
|
public static final String KEY = "value";
|
|
} |