Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/redundantCast/beforeCastMethodRef.java
Tagir Valeev 59325634ab [java-inspections] IDEA-356832 Inspections ignore redundant Class::cast method call
GitOrigin-RevId: 390a19d69020bc91f1395e6c4d23f14992ca396b
2024-08-28 17:54:26 +00:00

10 lines
191 B
Java

// "Remove redundant cast(s)" "true-preview"
import java.util.stream.*;
class Test {
{
Stream.of(1,2,3)
.map(Integer.class::<caret>cast)
.forEach(System.out::println)
}
}