Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.0
-
None
-
None
-
Operating System: All
Platform: All
-
28554
Description
Class ObjectUtils can compare Objects in a null-safe way calling:
equals(Object o1, Object o2)
There should be a similar method for generating a null-safe hashCode:
public static int hashCode(Object o) {
return ((o == null) ? 0 : o.hashCode());
}