• 2024-05-21SonarLint实践总结
    SonarLint实践总结1、集合要用isEmpty()判空。MinorcodesmellUseisEmpty()tocheckwhetherthecollectionisemptyornot.问题代码:   Rule:UsingCollection.size()totestforemptinessworks,butusingCollection.isEmpty()makesthecodemorer