报告重写
equals()
但不重写
hashCode()
(或者相反操作)的类。 还会报告重写
equals()
或
hashCode()
的对象声明。
这可能会导致在将类添加到
Collection
时产生不良行为