SonarLint: Replace the type specification in this constructor call with the diamond operator (“<>“).

﹏ヽ暗。殇╰゛Y 2022-09-10 04:20 257阅读 0赞







Sonar常见问题及修改建议2021(持续更新!!) https://blog.csdn.net/libusi001/article/details/103717457

一、问题

  1. SonarLint:用菱形运算符(“ <>”)替换此构造函数调用中的类型规范。
  2. 显式类型参数BzbxDataInfos可以替换为<>

二、解决

20200818112402891.png

20200818112604403.png

有用请点赞,养成良好习惯!

疑问、交流、鼓励请留言!

发表评论

表情:
评论列表 (有 0 条评论,257人围观)

还没有评论,来说两句吧...

相关阅读