diff -r a7f16447085e -r 48e480e56aad src/java.base/share/classes/java/text/spi/BreakIteratorProvider.java --- a/src/java.base/share/classes/java/text/spi/BreakIteratorProvider.java Tue Sep 24 10:04:13 2019 +0000 +++ b/src/java.base/share/classes/java/text/spi/BreakIteratorProvider.java Tue Sep 24 09:43:43 2019 +0100 @@ -46,13 +46,13 @@ } /** - * Returns a new BreakIterator instance + * Returns a new {@code BreakIterator} instance * for word breaks * for the given locale. * @param locale the desired locale * @return A break iterator for word breaks - * @throws NullPointerException if locale is null - * @throws IllegalArgumentException if locale isn't + * @throws NullPointerException if {@code locale} is null + * @throws IllegalArgumentException if {@code locale} isn't * one of the locales returned from * {@link java.util.spi.LocaleServiceProvider#getAvailableLocales() * getAvailableLocales()}. @@ -61,13 +61,13 @@ public abstract BreakIterator getWordInstance(Locale locale); /** - * Returns a new BreakIterator instance + * Returns a new {@code BreakIterator} instance * for line breaks * for the given locale. * @param locale the desired locale * @return A break iterator for line breaks - * @throws NullPointerException if locale is null - * @throws IllegalArgumentException if locale isn't + * @throws NullPointerException if {@code locale} is null + * @throws IllegalArgumentException if {@code locale} isn't * one of the locales returned from * {@link java.util.spi.LocaleServiceProvider#getAvailableLocales() * getAvailableLocales()}. @@ -76,13 +76,13 @@ public abstract BreakIterator getLineInstance(Locale locale); /** - * Returns a new BreakIterator instance + * Returns a new {@code BreakIterator} instance * for character breaks * for the given locale. * @param locale the desired locale * @return A break iterator for character breaks - * @throws NullPointerException if locale is null - * @throws IllegalArgumentException if locale isn't + * @throws NullPointerException if {@code locale} is null + * @throws IllegalArgumentException if {@code locale} isn't * one of the locales returned from * {@link java.util.spi.LocaleServiceProvider#getAvailableLocales() * getAvailableLocales()}. @@ -91,13 +91,13 @@ public abstract BreakIterator getCharacterInstance(Locale locale); /** - * Returns a new BreakIterator instance + * Returns a new {@code BreakIterator} instance * for sentence breaks * for the given locale. * @param locale the desired locale * @return A break iterator for sentence breaks - * @throws NullPointerException if locale is null - * @throws IllegalArgumentException if locale isn't + * @throws NullPointerException if {@code locale} is null + * @throws IllegalArgumentException if {@code locale} isn't * one of the locales returned from * {@link java.util.spi.LocaleServiceProvider#getAvailableLocales() * getAvailableLocales()}.