mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-17 20:11:25 +07:00
[java-inspections] IDEA-356832 Inspections ignore redundant Class::cast method call
GitOrigin-RevId: 390a19d69020bc91f1395e6c4d23f14992ca396b
This commit is contained in:
committed by
intellij-monorepo-bot
parent
646b6ff3d1
commit
59325634ab
@@ -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)
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user