Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/redundantCast/SerializableLambda.java

14 lines
270 B
Java

import java.io.Serializable;
class Test {
public static void main(String[] args) {
Runnable r = (Runnable & Serializable) (() -> {});
r = (Runnable & Serializable)() -> {};
r = (Runnable & I)() -> {};
System.out.println(r);
}
interface I {}
}