![](https://img-blog.csdnimg.cn/652201ba9c4c429a9c2784db2cef2de1.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Sonar
技术债务解决,代码质量管理。
thinkgame
人劝不如自会
展开
-
【Sonar技术债务解】Null pointers should not be dereferenced
修改方法: 增加非空处理 Objects.requireNonNull(xxx)问题释义: 空指针不应取消引用。原创 2023-03-14 18:14:26 · 2368 阅读 · 0 评论 -
【Sonar技术债务解决】Instance methods should not write to “static“ fields
修改方法:将非静态方法中对静态方法赋值的语句,单独封装一个静态方法。问题释义:普通方法调用静态字段。原创 2023-03-14 17:54:31 · 2062 阅读 · 0 评论