![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
sonarlint
xx_star1204
学习学习学习
展开
-
Null checks should not be used with "instanceof"
sonarLint 里面 Null checks should not be used with "instanceof" 使用instanceof 时不会进行null 检查,null instanceof classType 这个表达式会返回false原创 2019-08-14 15:03:17 · 376 阅读 · 0 评论 -
sonar Utility classes should not have public constructors
工具类里面不能有public的构造函数,需要构建一个private 的构造函数 class Utils{ private Utils(){ throw new IllegalStateException("Utility class"); } }原创 2019-08-14 15:21:26 · 9729 阅读 · 0 评论