Here you can find the source of hashCodeNullSafe(final Object o)
public static int hashCodeNullSafe(final Object o)
//package com.java2s; //License from project: Apache License public class Main { public static int hashCodeNullSafe(final Object o) { return o != null ? o.hashCode() : 0; }/*from w w w. ja v a 2 s . co m*/ }