4
|
Leonardo Alves Machado Vivek Kumar · 技术社区 · 7 年前 |
![]() |
1
8
你不应该仅仅为了设置一个变量而创建一个新方法。SonarLint只是建议最好使用方法引用,而不是lambda表达式。 The Java Tutorials - Method References . 对于你的情况-Sonarint只是想让你用以下内容替换这一行:
|