findsBug
隋唐罗成
先后在格力->万科->OPPO->Shein担任java后端工程师,
业精于勤荒于嬉,行成于思毁于随
博客很久不更新了,平时记录在有道云,processOn,语雀,持续学习
展开
-
【findBugs】findBugs对Integer.valueOf()的报错一类不必要的装箱转换
findBugs工具警告的,一类不必要的装箱转换:"Boxing/unboxing to parse a primitive", A boxed primitive is created from a String, just to extract the unboxed primitive value. It is more efficient to just call the stat...原创 2018-08-24 14:20:59 · 3268 阅读 · 1 评论 -
【findBugs】无作用本地变量的存储(低级别)
无作用本地变量的存储(低级别)Dead store to local variable: This instruction assigns a value to a local variable, but the value is not read or used in any subsequent instruction. Often, this indicates an error, b...原创 2018-08-24 14:49:45 · 466 阅读 · 0 评论 -
【fingBugs】可能空指针的间接引用,造成NullPointerException
Possible null pointer dereference There is a branch of statement that, if executed, guarantees that a null value will be dereferenced, which would generate a NullPointerException when the code is exe...原创 2018-08-24 15:14:25 · 2692 阅读 · 0 评论