9
I am overriding the hashCode and equals method of an object. I am using EqualsBuilder from the Apache Commons library for overriding equals. Since I am using Java 7, I was planning to use the built-in hash method in the Objects class instead of the Apache Commons HashCodeBuilder. Is there anything wrong with this approach? Is there any reason to prefer one over the other?