提交 7bddf0a0 编写于 作者: N naoto

8028368: There is no description whether or not java.util.ResourceBundle is thread-safe

Reviewed-by: okutsu
上级 82c320f5
...@@ -105,6 +105,12 @@ import sun.util.ResourceBundleEnumeration; ...@@ -105,6 +105,12 @@ import sun.util.ResourceBundleEnumeration;
* } * }
* </pre> * </pre>
* </blockquote> * </blockquote>
*
* <p>
* The implementation of a {@code ListResourceBundle} subclass must be thread-safe
* if it's simultaneously used by multiple threads. The default implementations
* of the methods in this class are thread-safe.
*
* @see ResourceBundle * @see ResourceBundle
* @see PropertyResourceBundle * @see PropertyResourceBundle
* @since JDK1.1 * @since JDK1.1
......
...@@ -100,6 +100,11 @@ import sun.util.ResourceBundleEnumeration; ...@@ -100,6 +100,11 @@ import sun.util.ResourceBundleEnumeration;
* </blockquote> * </blockquote>
* *
* <p> * <p>
* The implementation of a {@code PropertyResourceBundle} subclass must be
* thread-safe if it's simultaneously used by multiple threads. The default
* implementations of the non-abstract methods in this class are thread-safe.
*
* <p>
* <strong>Note:</strong> PropertyResourceBundle can be constructed either * <strong>Note:</strong> PropertyResourceBundle can be constructed either
* from an InputStream or a Reader, which represents a property file. * from an InputStream or a Reader, which represents a property file.
* Constructing a PropertyResourceBundle instance from an InputStream requires * Constructing a PropertyResourceBundle instance from an InputStream requires
......
...@@ -184,6 +184,13 @@ import sun.util.locale.LocaleObjectCache; ...@@ -184,6 +184,13 @@ import sun.util.locale.LocaleObjectCache;
* subclass. Your subclasses must override two methods: <code>handleGetObject</code> * subclass. Your subclasses must override two methods: <code>handleGetObject</code>
* and <code>getKeys()</code>. * and <code>getKeys()</code>.
* *
* <p>
* The implementation of a {@code ResourceBundle} subclass must be thread-safe
* if it's simultaneously used by multiple threads. The default implementations
* of the non-abstract methods in this class, and the methods in the direct
* known concrete subclasses {@code ListResourceBundle} and
* {@code PropertyResourceBundle} are thread-safe.
*
* <h3>ResourceBundle.Control</h3> * <h3>ResourceBundle.Control</h3>
* *
* The {@link ResourceBundle.Control} class provides information necessary * The {@link ResourceBundle.Control} class provides information necessary
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册