【发布时间】:2012-04-11 13:54:58
【问题描述】:
I read this coding rule 表示您应该更喜欢使用long[] 而不是Date[],但没有提供关于为什么的参考。
我为什么要这样做?与Date 相比,使用long 有什么优势?这会对垃圾回收产生什么影响?或者这只是一堆废话?
【问题讨论】:
-
没有任何上下文,这样的规则没有多大意义。
-
我认为 Rational Application Developer(@drgomesp) 已经为他的编码规则使用了其他来源。我在这里找到了规则:appperfect.com/support/java-coding-rules/…,但没有解释原因。
标签: java coding-style date-formatting