摘要:
在FindBugs中发现的一个小的bug: Invocation of toString on strArr in Test.main(String[]) [Scary(8), High confidence] 关于输出数组的情况: output: 阅读全文
posted @ 2016-06-03 10:39
lemon-now
阅读(736)
评论(0)
推荐(0)
摘要:
FindBugs推荐使用Integer.ValueOf(int)代替new Integer(int),因为这样可以提高性能。如果当你的int值介于-128~127时,Integer.ValueOf(int)的效率比Integer(int)快大约3.5倍。下面看看JDK的源码,看看到Integer.V 阅读全文
posted @ 2016-06-03 09:22
lemon-now
阅读(4152)
评论(0)
推荐(0)

浙公网安备 33010602011771号