mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 10:20:15 +07:00
[java-inspections] IDEA-283015 IJ suggests replacing x->x with Function.identity() when not appropriate
GitOrigin-RevId: 71bbd3ec7a20dab12c4a5a12233f6fd1ff50ea56
This commit is contained in:
committed by
intellij-monorepo-bot
parent
cff748ac98
commit
e8c22104a8
@@ -0,0 +1,8 @@
|
||||
// "Replace lambda expression with 'Function.identity()'" "false"
|
||||
import java.util.function.Function;
|
||||
|
||||
class Scratch {
|
||||
public static void main(String[] args) {
|
||||
Function<String, Object> myFunc = c <caret>-> c;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user