Reuse Objects#hasCode()
This commit is contained in:
parent
731a679406
commit
351fb75f49
|
@ -87,7 +87,7 @@ public class ConstantInitializer<T> implements ConcurrentInitializer<T> {
|
|||
*/
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return getObject() != null ? getObject().hashCode() : 0;
|
||||
return Objects.hashCode(object);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue