Override hascode/equals() for JENKINS-16509