![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java代码质量
文章平均质量分 57
希望在哪
生活需要希望
展开
-
@Deprecated & @Override
1. @Deprecated” code should not be used 级别:cwe, obsolete, owasp-a9, security Once deprecated, classes, and interfaces, and their members should be avoided, rather than used, inherited or extende原创 2016-08-28 17:09:43 · 2365 阅读 · 0 评论 -
BigDecimal(double)
“BigDecimal(double)” should not be used 级别:bug Because of floating point imprecision, you’re unlikely to get the value you expect from the BigDecimal(double) constructor.From the JavaDocs: Th原创 2016-08-30 00:54:14 · 1750 阅读 · 0 评论 -
"Calendars" and "DateFormats" should not be static
“Calendars” and “DateFormats” should not be static 级别:bug, multi-threading Not all classes in the standard Java library were written to be thread-safe. Using them in a multi-threaded manner is h原创 2016-09-01 00:13:27 · 1445 阅读 · 0 评论 -
不要使用equals方法对AtomicXXX进行是否相等的判断
1. “.equals()” should not be used to test the values of “Atomic” classes 级别:bug AtomicInteger, and AtomicLong extend Number, but they’re distinct from Integer and Long and should be handled diff原创 2016-08-26 00:42:50 · 4721 阅读 · 0 评论