Reuse Objects#hasCode()

This commit is contained in:
Gary Gregory 2022-11-04 16:29:43 -04:00
parent 731a679406
commit 351fb75f49
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
/**