sonar问题记录

  1. Boxed value is unboxed and then immediately reboxed
    已装箱的值被解除装箱,然后立即重新装箱。
    image.png

https://www.cnblogs.com/kzyuan/p/14061217.html

  1. A value is checked here to see whether it is null, but this value can't be null because it was previously dereferenced and if it were null a null pointer exception would have occurred at the earlier dereference. Essentially, this code and the previous dereference disagree as to whether this value is allowed to be null. Either the check is redundant or the previous dereference is erroneous.
    对一个已经使用的值进行了null检测。
    image.png

https://blog.csdn.net/u012483116/article/details/72932214

  1. NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE
    方法的异常路径中可能引用空指针
    image.png

https://www.cnblogs.com/wuyun-blog/p/7456667.html

4.DM_BOXED_REIMITICE_FOR_PARSING
装箱/拆箱解析原语

image.png

https://blog.csdn.net/ajexton/article/details/44340965

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容