< prev index next >
src/java.base/share/classes/java/util/ResourceBundle.java
Print this page
*** 348,357 ****
--- 348,359 ----
* @see ListResourceBundle
* @see PropertyResourceBundle
* @see MissingResourceException
* @see ResourceBundleProvider
* @since 1.1
+ * @revised 9
+ * @spec JPMS
*/
public abstract class ResourceBundle {
/** initial size of the bundle cache */
private static final int INITIAL_CACHE_SIZE = 32;
*** 868,877 ****
--- 870,881 ----
* Note that validation of <code>control</code> is performed as
* needed.
* @throws UnsupportedOperationException
* if this method is called in a named module
* @since 1.6
+ * @revised 9
+ * @spec JPMS
*/
@CallerSensitive
public static final ResourceBundle getBundle(String baseName,
Control control) {
Class<?> caller = Reflection.getCallerClass();
*** 936,945 ****
--- 940,950 ----
* @throws MissingResourceException
* if no resource bundle for the specified base name can be found in the
* specified module
* @return a resource bundle for the given base name and the default locale
* @since 9
+ * @spec JPMS
* @see ResourceBundleProvider
*/
@CallerSensitive
public static ResourceBundle getBundle(String baseName, Module module) {
return getBundleFromModule(Reflection.getCallerClass(), module, baseName,
*** 989,998 ****
--- 994,1004 ----
* @throws MissingResourceException
* if no resource bundle for the specified base name and locale can
* be found in the specified {@code module}
* @return a resource bundle for the given base name and locale in the module
* @since 9
+ * @spec JPMS
*/
@CallerSensitive
public static ResourceBundle getBundle(String baseName, Locale targetLocale, Module module) {
return getBundleFromModule(Reflection.getCallerClass(), module, baseName, targetLocale,
getDefaultControl(module, baseName));
*** 1034,1043 ****
--- 1040,1051 ----
* Note that validation of <code>control</code> is performed as
* needed.
* @throws UnsupportedOperationException
* if this method is called in a named module
* @since 1.6
+ * @revised 9
+ * @spec JPMS
*/
@CallerSensitive
public static final ResourceBundle getBundle(String baseName, Locale targetLocale,
Control control) {
Class<?> caller = Reflection.getCallerClass();
*** 1241,1250 ****
--- 1249,1260 ----
* @exception java.lang.NullPointerException
* if <code>baseName</code>, <code>locale</code>, or <code>loader</code> is <code>null</code>
* @exception MissingResourceException
* if no resource bundle for the specified base name can be found
* @since 1.2
+ * @revised 9
+ * @spec JPMS
*/
@CallerSensitive
public static ResourceBundle getBundle(String baseName, Locale locale,
ClassLoader loader)
{
*** 1463,1472 ****
--- 1473,1484 ----
* Note that validation of <code>control</code> is performed as
* needed.
* @throws UnsupportedOperationException
* if this method is called in a named module
* @since 1.6
+ * @revised 9
+ * @spec JPMS
*/
@CallerSensitive
public static ResourceBundle getBundle(String baseName, Locale targetLocale,
ClassLoader loader, Control control) {
if (loader == null || control == null) {
*** 2192,2201 ****
--- 2204,2215 ----
/**
* Removes all resource bundles from the cache that have been loaded
* by the caller's module.
*
* @since 1.6
+ * @revised 9
+ * @spec JPMS
* @see ResourceBundle.Control#getTimeToLive(String,Locale)
*/
@CallerSensitive
public static final void clearCache() {
Class<?> caller = Reflection.getCallerClass();
*** 2473,2482 ****
--- 2487,2498 ----
* a {@code ResourceBundle.Control} is called in a named module, the method
* will throw an {@link UnsupportedOperationException}. Any service providers
* of {@link ResourceBundleControlProvider} are ignored in named modules.
*
* @since 1.6
+ * @revised 9
+ * @spec JPMS
* @see java.util.spi.ResourceBundleProvider
*/
public static class Control {
/**
* The default format <code>List</code>, which contains the strings
*** 3101,3110 ****
--- 3117,3128 ----
* for details.
* @exception IOException
* if an error occurred when reading resources using
* any I/O operations
* @see java.util.spi.ResourceBundleProvider#getBundle(String, Locale)
+ * @revised 9
+ * @spec JPMS
*/
public ResourceBundle newBundle(String baseName, Locale locale, String format,
ClassLoader loader, boolean reload)
throws IllegalAccessException, InstantiationException, IOException {
/*
*** 3377,3386 ****
--- 3395,3406 ----
* @return the bundle name for the resource bundle
* @exception NullPointerException
* if <code>baseName</code> or <code>locale</code>
* is <code>null</code>
* @see java.util.spi.AbstractResourceBundleProvider#toBundleName(String, Locale)
+ * @revised 9
+ * @spec JPMS
*/
public String toBundleName(String baseName, Locale locale) {
if (locale == Locale.ROOT) {
return baseName;
}
< prev index next >