[java-inspections] IDEA-356832 Inspections ignore redundant Class::cast method call

GitOrigin-RevId: 390a19d69020bc91f1395e6c4d23f14992ca396b
This commit is contained in:
Tagir Valeev
2024-08-28 13:13:42 +02:00
committed by intellij-monorepo-bot
parent 646b6ff3d1
commit 59325634ab
7 changed files with 106 additions and 11 deletions

View File

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

View File

@@ -0,0 +1,10 @@
// "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)
}
}