报告覆盖 equals() 但不覆盖 hashCode() (反之亦然) 的类。 同时还报告覆盖 equals()hashCode() 的对象声明。

这可能会导致在将类添加到 Collection 时产生不良行为