Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/valuebased/quickfix/afterSuppressEnclosingMethodInsideAnonymousClass.java
T
2023-09-26 13:04:00 +00:00

25 lines
383 B
Java

// "Suppress for method" "true"
class Main {
final OpenValueBased vb = new OpenValueBased(){
@Override
public void g() {
}
};
void f(){
new OpenValueBased() {
@SuppressWarnings("synchronization")
@Override
public void g() {
synchronized (vb){ }
}
};
}
}
@jdk.internal.ValueBased
interface OpenValueBased {
void g();
}