private void initialize(Locale loc) {
        // Verify and compile the given pattern.
        compiledPattern = compile(pattern);

        /* try the cache first */
        numberFormat = cachedNumberFormatData.get(loc);
        if (numberFormat == null) { /* cache miss */
            numberFormat = NumberFormat.getIntegerInstance(loc);
            numberFormat.setGroupingUsed(false);

            /* update cache */
            cachedNumberFormatData.putIfAbsent(loc, numberFormat);
        }
        numberFormat = (NumberFormat) numberFormat.clone();

        initializeDefaultCentury();
    }
private void initialize ( Locale loc ) { compiledPattern = compile ( pattern ) ; numberFormat = cachedNumberFormatData . get ( loc ) ; if ( numberFormat == null ) { numberFormat = NumberFormat . getIntegerInstance ( loc ) ; numberFormat . setGroupingUsed ( false ) ; cachedNumberFormatData . putIfAbsent ( loc , numberFormat ) ; } numberFormat = ( NumberFormat ) numberFormat . clone ( ) ; initializeDefaultCentury ( ) ; }
/* Initialize compiledPattern and numberFormat fields