mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8220249: fix headings in java.compiler
Reviewed-by: erikj, darcy
This commit is contained in:
parent
7bb74f80da
commit
2df0f4b4dd
52 changed files with 250 additions and 250 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -108,7 +108,7 @@ import java.util.Objects;
|
|||
* For both the epoch-second and nanosecond parts, a larger value is always later on the time-line
|
||||
* than a smaller value.
|
||||
*
|
||||
* <h3>Time-scale</h3>
|
||||
* <h2>Time-scale</h2>
|
||||
* <p>
|
||||
* The length of the solar day is the standard way that humans measure time.
|
||||
* This has traditionally been subdivided into 24 hours of 60 minutes of 60 seconds,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -111,7 +111,7 @@ import static java.util.Map.entry;
|
|||
* Similarly, a comparison of two IDs only examines the ID, whereas
|
||||
* a comparison of two rules examines the entire data set.
|
||||
*
|
||||
* <h3>Time-zone IDs</h3>
|
||||
* <h2>Time-zone IDs</h2>
|
||||
* The ID is unique within the system.
|
||||
* There are three types of ID.
|
||||
* <p>
|
||||
|
@ -147,7 +147,7 @@ import static java.util.Map.entry;
|
|||
* The recommended format for region IDs from groups other than TZDB is 'group~region'.
|
||||
* Thus if IATA data were defined, Utrecht airport would be 'IATA~UTC'.
|
||||
*
|
||||
* <h3>Serialization</h3>
|
||||
* <h2>Serialization</h2>
|
||||
* This class can be serialized and stores the string zone ID in the external form.
|
||||
* The {@code ZoneOffset} subclass uses a dedicated format that only stores the
|
||||
* offset from UTC/Greenwich.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -99,7 +99,7 @@ import java.util.Objects;
|
|||
* The chronology defines how the calendar system operates and the meaning of
|
||||
* the standard fields.
|
||||
*
|
||||
* <h3>When to use this interface</h3>
|
||||
* <h2>When to use this interface</h2>
|
||||
* The design of the API encourages the use of {@code LocalDate} rather than this
|
||||
* interface, even in the case where the application needs to deal with multiple
|
||||
* calendar systems.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -121,7 +121,7 @@ import java.util.Objects;
|
|||
* first, last);
|
||||
* </pre>
|
||||
*
|
||||
* <h3>Adding Calendars</h3>
|
||||
* <h2>Adding Calendars</h2>
|
||||
* <p> The set of calendars is extensible by defining a subclass of {@link ChronoLocalDate}
|
||||
* to represent a date instance and an implementation of {@code Chronology}
|
||||
* to be the factory for the ChronoLocalDate subclass.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -102,7 +102,7 @@ import java.util.Objects;
|
|||
* The chronology defines how the calendar system operates and the meaning of
|
||||
* the standard fields.
|
||||
*
|
||||
* <h3>When to use this interface</h3>
|
||||
* <h2>When to use this interface</h2>
|
||||
* The design of the API encourages the use of {@code LocalDateTime} rather than this
|
||||
* interface, even in the case where the application needs to deal with multiple
|
||||
* calendar systems. The rationale for this is explored in detail in {@link ChronoLocalDate}.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -103,7 +103,7 @@ import java.util.Objects;
|
|||
* The chronology defines how the calendar system operates and the meaning of
|
||||
* the standard fields.
|
||||
*
|
||||
* <h3>When to use this interface</h3>
|
||||
* <h2>When to use this interface</h2>
|
||||
* The design of the API encourages the use of {@code ZonedDateTime} rather than this
|
||||
* interface, even in the case where the application needs to deal with multiple
|
||||
* calendar systems. The rationale for this is explored in detail in {@link ChronoLocalDate}.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -133,7 +133,7 @@ import java.util.Set;
|
|||
* <li> {@link #date(TemporalAccessor) date(TemporalAccessor)}
|
||||
* </ul>
|
||||
*
|
||||
* <h3 id="addcalendars">Adding New Calendars</h3>
|
||||
* <h2 id="addcalendars">Adding New Calendars</h2>
|
||||
* The set of available chronologies can be extended by applications.
|
||||
* Adding a new calendar system requires the writing of an implementation of
|
||||
* {@code Chronology}, {@code ChronoLocalDate} and {@code Era}.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -150,7 +150,7 @@ import sun.util.locale.provider.TimeZoneNameUtility;
|
|||
* class for formatting. The {@link #toFormat()} method returns an
|
||||
* implementation of {@code java.text.Format}.
|
||||
*
|
||||
* <h3 id="predefined">Predefined Formatters</h3>
|
||||
* <h2 id="predefined">Predefined Formatters</h2>
|
||||
* <table class="striped" style="text-align:left">
|
||||
* <caption>Predefined Formatters</caption>
|
||||
* <thead>
|
||||
|
@ -258,7 +258,7 @@ import sun.util.locale.provider.TimeZoneNameUtility;
|
|||
* </tbody>
|
||||
* </table>
|
||||
*
|
||||
* <h3 id="patterns">Patterns for Formatting and Parsing</h3>
|
||||
* <h2 id="patterns">Patterns for Formatting and Parsing</h2>
|
||||
* Patterns are based on a simple sequence of letters and symbols.
|
||||
* A pattern is used to create a Formatter using the
|
||||
* {@link #ofPattern(String)} and {@link #ofPattern(String, Locale)} methods.
|
||||
|
@ -434,7 +434,7 @@ import sun.util.locale.provider.TimeZoneNameUtility;
|
|||
* that you want to output directly to ensure that future changes do not break
|
||||
* your application.
|
||||
*
|
||||
* <h3 id="resolving">Resolving</h3>
|
||||
* <h2 id="resolving">Resolving</h2>
|
||||
* Parsing is implemented as a two-phase operation.
|
||||
* First, the text is parsed using the layout defined by the formatter, producing
|
||||
* a {@code Map} of field to value, a {@code ZoneId} and a {@code Chronology}.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -91,7 +91,7 @@ import sun.util.locale.provider.LocaleResources;
|
|||
* <p>
|
||||
* This class defines fields and units that are specific to the ISO calendar system.
|
||||
*
|
||||
* <h3>Quarter of year</h3>
|
||||
* <h2>Quarter of year</h2>
|
||||
* The ISO-8601 standard is based on the standard civic 12 month year.
|
||||
* This is commonly divided into four quarters, often abbreviated as Q1, Q2, Q3 and Q4.
|
||||
* <p>
|
||||
|
@ -107,7 +107,7 @@ import sun.util.locale.provider.LocaleResources;
|
|||
* <li>{@link ChronoField#YEAR YEAR} - the standard ISO year
|
||||
* </ul>
|
||||
*
|
||||
* <h3>Week based years</h3>
|
||||
* <h2>Week based years</h2>
|
||||
* The ISO-8601 standard was originally intended as a data interchange format,
|
||||
* defining a string format for dates and times. However, it also defines an
|
||||
* alternate way of expressing the date, based on the concept of week-based-year.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -115,7 +115,7 @@ public final class JulianFields {
|
|||
* the Julian Day value is validated against the range of valid values.
|
||||
* In {@linkplain ResolverStyle#LENIENT lenient mode} no validation occurs.
|
||||
*
|
||||
* <h3>Astronomical and Scientific Notes</h3>
|
||||
* <h4>Astronomical and Scientific Notes</h4>
|
||||
* The standard astronomical definition uses a fraction to indicate the time-of-day,
|
||||
* where each day is counted from midday to midday. For example,
|
||||
* a fraction of 0 represents midday, a fraction of 0.25
|
||||
|
@ -169,7 +169,7 @@ public final class JulianFields {
|
|||
* the Modified Julian Day value is validated against the range of valid values.
|
||||
* In {@linkplain ResolverStyle#LENIENT lenient mode} no validation occurs.
|
||||
*
|
||||
* <h3>Astronomical and Scientific Notes</h3>
|
||||
* <h4>Astronomical and Scientific Notes</h4>
|
||||
* <pre>
|
||||
* | ISO date | Modified Julian Day | Decimal MJD |
|
||||
* | 1970-01-01T00:00 | 40,587 | 40,587.0 |
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -92,7 +92,7 @@ import java.time.DateTimeException;
|
|||
* of this interface may be in calendar systems other than ISO.
|
||||
* See {@link java.time.chrono.ChronoLocalDate} for a fuller discussion of the issues.
|
||||
*
|
||||
* <h3>When to implement</h3>
|
||||
* <h2>When to implement</h2>
|
||||
* <p>
|
||||
* A class should implement this interface if it meets three criteria:
|
||||
* <ul>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -120,7 +120,7 @@ import sun.util.locale.provider.LocaleResources;
|
|||
* </ul>
|
||||
* Together these two values allow a year or month to be divided into weeks.
|
||||
*
|
||||
* <h3>Week of Month</h3>
|
||||
* <h2>Week of Month</h2>
|
||||
* One field is used: week-of-month.
|
||||
* The calculation ensures that weeks never overlap a month boundary.
|
||||
* The month is divided into periods where each period starts on the defined first day-of-week.
|
||||
|
@ -145,14 +145,14 @@ import sun.util.locale.provider.LocaleResources;
|
|||
* </tbody>
|
||||
* </table>
|
||||
*
|
||||
* <h3>Week of Year</h3>
|
||||
* <h2>Week of Year</h2>
|
||||
* One field is used: week-of-year.
|
||||
* The calculation ensures that weeks never overlap a year boundary.
|
||||
* The year is divided into periods where each period starts on the defined first day-of-week.
|
||||
* The earliest period is referred to as week 0 if it has less than the minimal number of days
|
||||
* and week 1 if it has at least the minimal number of days.
|
||||
*
|
||||
* <h3>Week Based Year</h3>
|
||||
* <h2>Week Based Year</h2>
|
||||
* Two fields are used for week-based-year, one for the
|
||||
* {@link #weekOfWeekBasedYear() week-of-week-based-year} and one for
|
||||
* {@link #weekBasedYear() week-based-year}. In a week-based-year, each week
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue