8305206: Add @spec tags in java.base/java.* (part 1)

Reviewed-by: alanb, naoto, darcy, lancea, dfuchs, iris, mchung
This commit is contained in:
Jonathan Gibbons 2023-04-04 00:09:38 +00:00
parent ccbb0e8d89
commit c6bd489cc8
60 changed files with 268 additions and 2 deletions

View file

@ -760,6 +760,8 @@ public final class DateTimeFormatter {
* @param requestedTemplate the requested template, not null
* @return the formatter based on the {@code requestedTemplate} pattern, not null
* @throws IllegalArgumentException if {@code requestedTemplate} is invalid
*
* @spec https://www.unicode.org/reports/tr35 Unicode Locale Data Markup Language (LDML)
* @see #ofPattern(String)
* @since 19
*/

View file

@ -1525,6 +1525,8 @@ public final class DateTimeFormatterBuilder {
* @param requestedTemplate the requested template to use, not null
* @return this, for chaining, not null
* @throws IllegalArgumentException if {@code requestedTemplate} is invalid
*
* @spec https://www.unicode.org/reports/tr35 Unicode Locale Data Markup Language (LDML)
* @see #appendPattern(String)
* @since 19
*/
@ -1608,6 +1610,8 @@ public final class DateTimeFormatterBuilder {
*
* @param style the text style to use, not null
* @return this, for chaining, not null
*
* @spec https://www.unicode.org/reports/tr35 Unicode Locale Data Markup Language (LDML)
* @since 16
*/
public DateTimeFormatterBuilder appendDayPeriodText(TextStyle style) {