如果 hashCode 中使用了 var 字段,则报告这些字段。
hashCode
var
示例:
class Test { var value = 3 override def hashCode(): Int = value // 值可能会改变,表明 hashCode() 被误用 }