private YearInfo getYearInfo ( int year ) { YearInfo info = iYearInfoCache [ year & CACHE_MASK ] ; if ( info == null || info . iYear != year ) { info = new YearInfo ( year , calculateFirstDayOfYearMillis ( year ) ) ; iYearInfoCache [ year & CACHE_MASK ] = info ; } return info ; }
Although accessed by multiple threads this method doesn t need to be synchronized .