Lambda can be replaced with method reference

Lambda can be replaced with method reference

Android开发的时候提示 Lambda can be replaced with method reference

只需要按下 Alt + Enter 即可

enter image description here

效果如下

enter image description here

参考资料

How to change Runnable to lambda expression in Java with IntelliJ shortcut

评论

此博客中的热门博文

ffmpeg 音频淡出淡出并调整音量

ffmpeg-filter 使用指南