equal
deleted
inserted
replaced
927 * The Java Virtual Machine sets the default locale during startup based |
927 * The Java Virtual Machine sets the default locale during startup based |
928 * on the host environment. It is used by many locale-sensitive methods |
928 * on the host environment. It is used by many locale-sensitive methods |
929 * if no locale is explicitly specified. It can be changed using the |
929 * if no locale is explicitly specified. It can be changed using the |
930 * setDefault(Locale.Category, Locale) method. |
930 * setDefault(Locale.Category, Locale) method. |
931 * |
931 * |
932 * @param category - the specified category to get the default locale |
932 * @param category the specified category to get the default locale |
933 * @throws NullPointerException if category is null |
933 * @throws NullPointerException if category is null |
934 * @return the default locale for the specified Category for this instance |
934 * @return the default locale for the specified Category for this instance |
935 * of the Java Virtual Machine |
935 * of the Java Virtual Machine |
936 * @see #setDefault(Locale.Category, Locale) |
936 * @see #setDefault(Locale.Category, Locale) |
937 * @since 1.7 |
937 * @since 1.7 |
1073 * Since changing the default locale may affect many different areas of |
1073 * Since changing the default locale may affect many different areas of |
1074 * functionality, this method should only be used if the caller is |
1074 * functionality, this method should only be used if the caller is |
1075 * prepared to reinitialize locale-sensitive code running within the |
1075 * prepared to reinitialize locale-sensitive code running within the |
1076 * same Java Virtual Machine. |
1076 * same Java Virtual Machine. |
1077 * |
1077 * |
1078 * @param category - the specified category to set the default locale |
1078 * @param category the specified category to set the default locale |
1079 * @param newLocale - the new default locale |
1079 * @param newLocale the new default locale |
1080 * @throws SecurityException if a security manager exists and its |
1080 * @throws SecurityException if a security manager exists and its |
1081 * checkPermission method doesn't allow the operation. |
1081 * checkPermission method doesn't allow the operation. |
1082 * @throws NullPointerException if category and/or newLocale is null |
1082 * @throws NullPointerException if category and/or newLocale is null |
1083 * @see SecurityManager#checkPermission(java.security.Permission) |
1083 * @see SecurityManager#checkPermission(java.security.Permission) |
1084 * @see PropertyPermission |
1084 * @see PropertyPermission |