特牛生活网

SonarLint检测出的bug、漏洞修复总结-CSDN博客

网友收藏
文章浏览阅读3.1w次,点赞21次,收藏126次。1、Introduce a new variable instead of reusing the parameter "prefixKey"不要用传递过来的参数去重新赋值做判断等可以新建一个参数 等于传递过来的参数 用新的参数去操作private String getBatchSaveKey(Map<String, String> map, String prefixKey, String... keys) {undefined //创建一个newPrefix...