网站首页
编程语言
数据库
系统相关
其他分享
编程问答
smell
2024-05-21
SonarLint实践总结
SonarLint实践总结1、集合要用isEmpty()判空。MinorcodesmellUseisEmpty()tocheckwhetherthecollectionisemptyornot.问题代码: Rule:UsingCollection.size()totestforemptinessworks,butusingCollection.isEmpty()makesthecodemorer