jdk/src/share/classes/java/text/DecimalFormatSymbols.java
changeset 6489 9e7015635425
parent 5506 202f599c92aa
child 6501 684810d882b3
equal deleted inserted replaced
6290:535b02d1049c 6489:9e7015635425
    74      * {@link java.text.spi.DecimalFormatSymbolsProvider DecimalFormatSymbolsProvider}
    74      * {@link java.text.spi.DecimalFormatSymbolsProvider DecimalFormatSymbolsProvider}
    75      * implementations. For full locale coverage, use the
    75      * implementations. For full locale coverage, use the
    76      * {@link #getInstance(Locale) getInstance} method.
    76      * {@link #getInstance(Locale) getInstance} method.
    77      */
    77      */
    78     public DecimalFormatSymbols() {
    78     public DecimalFormatSymbols() {
    79         initialize( Locale.getDefault() );
    79         initialize( Locale.getDefault(Locale.Category.FORMAT) );
    80     }
    80     }
    81 
    81 
    82     /**
    82     /**
    83      * Create a DecimalFormatSymbols object for the given locale.
    83      * Create a DecimalFormatSymbols object for the given locale.
    84      * This constructor can only construct instances for the locales
    84      * This constructor can only construct instances for the locales
   123      * DecimalFormatSymbolsProvider} implementations.
   123      * DecimalFormatSymbolsProvider} implementations.
   124      * @return a <code>DecimalFormatSymbols</code> instance.
   124      * @return a <code>DecimalFormatSymbols</code> instance.
   125      * @since 1.6
   125      * @since 1.6
   126      */
   126      */
   127     public static final DecimalFormatSymbols getInstance() {
   127     public static final DecimalFormatSymbols getInstance() {
   128         return getInstance(Locale.getDefault());
   128         return getInstance(Locale.getDefault(Locale.Category.FORMAT));
   129     }
   129     }
   130 
   130 
   131     /**
   131     /**
   132      * Gets the <code>DecimalFormatSymbols</code> instance for the specified
   132      * Gets the <code>DecimalFormatSymbols</code> instance for the specified
   133      * locale.  This method provides access to <code>DecimalFormatSymbols</code>
   133      * locale.  This method provides access to <code>DecimalFormatSymbols</code>