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

你可能感兴趣的:(sonar问题记录)