diff --git a/src/share/classes/java/time/Instant.java b/src/share/classes/java/time/Instant.java index 0ad4e2bb2fd6845f2726b1f9891f433f4abe41f2..e6544167f077bb268d470cc509203cfcdba6932f 100644 --- a/src/share/classes/java/time/Instant.java +++ b/src/share/classes/java/time/Instant.java @@ -156,14 +156,14 @@ import java.util.Objects; * internationally-agreed time scale is modified or replaced, a new * segment of the Java Time-Scale must be defined for it. Each segment * must meet these requirements: - *
+ *
* For the segment from 1972-11-03 (exact boundary discussed below) until diff --git a/src/share/classes/java/time/LocalDateTime.java b/src/share/classes/java/time/LocalDateTime.java index d0d1c9fc3958cacd155d28fc6b732cc264856dcf..f60d286bdbbe49a94af28aeb3e5567c12fc92706 100644 --- a/src/share/classes/java/time/LocalDateTime.java +++ b/src/share/classes/java/time/LocalDateTime.java @@ -1941,13 +1941,13 @@ public final class LocalDateTime * Outputs this date-time as a {@code String}, such as {@code 2007-12-03T10:15:30}. *
* The output will be one of the following ISO-8601 formats: - *
+ *
* The output will be one of the following ISO-8601 formats: - *
+ *
* The output will be one of the following ISO-8601 formats: - *
+ *
* The output will be one of the following ISO-8601 formats: - *
+ *
+ *
* This maps as follows: - *
+ *
* This maps as follows: - *
+ *
+ *
* The ID of the returned offset will be normalized to one of the formats @@ -471,11 +471,11 @@ public final class ZoneOffset *
* The ID is minor variation to the standard ISO-8601 formatted string * for the offset. There are three formats: - *
+ *
+ *
* Any method that converts directly or implicitly from a local date-time to an * instant by obtaining the offset has the potential to be complicated. @@ -1699,12 +1699,12 @@ public final class ZonedDateTime *
* For example, consider a time-zone where the spring DST cutover means that the * local times 01:00 to 01:59 occur twice changing from offset +02:00 to +01:00. - *
+ *
* This instance is immutable and unaffected by this method call. * @@ -1940,12 +1940,12 @@ public final class ZonedDateTime *
* For example, consider a time-zone where the spring DST cutover means that the * local times 01:00 to 01:59 occur twice changing from offset +02:00 to +01:00. - *
+ *
* This instance is immutable and unaffected by this method call. * diff --git a/src/share/classes/java/time/chrono/ChronoLocalDate.java b/src/share/classes/java/time/chrono/ChronoLocalDate.java index 9fba962c5ece2477508731d3c4da15687a7d8aff..baa7b69348cc7489c2f056661d4e13c47d04144e 100644 --- a/src/share/classes/java/time/chrono/ChronoLocalDate.java +++ b/src/share/classes/java/time/chrono/ChronoLocalDate.java @@ -195,13 +195,13 @@ import java.util.Objects; * *
+ *
+ *
* The {@code Chronology} instance provides a set of methods to create {@code ChronoLocalDate} instances. * The date classes are used to manipulate specific dates. - *
+ *
- * The conversion will obtain the chronology using {@link TemporalQueries.chronology()}. + * The conversion will obtain the chronology using {@link TemporalQueries#chronology()}. * If the specified temporal object does not have a chronology, {@link IsoChronology} is returned. *
- * This method matches the signature of the functional interface {@link TemporalQueries.
+ * This method matches the signature of the functional interface {@link TemporalQuery}
* allowing it to be used in queries via method reference, {@code Chronology::from}.
*
* @param temporal the temporal to convert, not null
@@ -435,7 +435,7 @@ public interface Chronology extends Comparable
- * This method matches the signature of the functional interface {@link TemporalQueries.
+ * This method matches the signature of the functional interface {@link TemporalQuery}
* allowing it to be used as a query via method reference, {@code aChronology::date}.
*
* @param temporal the temporal object to convert, not null
@@ -458,7 +458,7 @@ public interface Chronology extends Comparable
- * This method matches the signature of the functional interface {@link TemporalQueries.
+ * This method matches the signature of the functional interface {@link TemporalQuery}
* allowing it to be used as a query via method reference, {@code aChronology::localDateTime}.
*
* @param temporal the temporal object to convert, not null
@@ -490,7 +490,7 @@ public interface Chronology extends Comparable
- * This method matches the signature of the functional interface {@link TemporalQueries.
+ * This method matches the signature of the functional interface {@link TemporalQuery}
* allowing it to be used as a query via method reference, {@code aChronology::zonedDateTime}.
*
* @param temporal the temporal object to convert, not null
@@ -534,10 +534,10 @@ public interface Chronology extends Comparable
* A leap-year is a year of a longer length than normal.
* The exact meaning is determined by the chronology according to the following constraints.
- *
+ *
+ *
* The fields are defined as follows:
- *
+ *
+ *
*
* The fields are defined as follows:
- *
+ *
+ *
*
* The fields are defined as follows:
- *
+ *
+ *
*
+ *
*
* The format consists of:
- *
* The format consists of:
- *
* There are two situations where this query may return a non-zero period.
- *
+ *
*
* The basic elements of date-time can all be added:
- *
+ *
* Finally, a shorthand pattern, mostly compatible with {@code java.text.SimpleDateFormat SimpleDateFormat}
@@ -889,7 +889,7 @@ public final class DateTimeFormatterBuilder {
*
* The format of the offset is controlled by a pattern which must be one
* of the following:
- *
+ *
+ *
* During formatting, the offset is obtained using a mechanism equivalent
* to querying the temporal with {@link TemporalQueries#offset()}.
@@ -1244,12 +1244,12 @@ public final class DateTimeFormatterBuilder {
* This appends a localized section to the builder, suitable for outputting
* a date, time or date-time combination. The format of the localized
* section is lazily looked up based on four items:
- *
+ *
* The complete date is expressed using three fields:
- *
+ *
* The date is expressed using three fields:
- *
+ *
* The first week of a week-based-year is the first Monday-based week of the standard
* ISO year that has at least 4 days in the new year.
- *
+ *
* For example:
- *
+ *
*
+ *
*
+ *
*
+ *
*
+ *
* Modified Julian Days are sometimes taken to imply Universal Time or UTC, but this
* implementation always uses the Modified Julian Day for the local date,
* regardless of the offset or time-zone.
diff --git a/src/share/classes/java/time/temporal/Temporal.java b/src/share/classes/java/time/temporal/Temporal.java
index 9931c46f4f16eb648eb5b1ff520df6d5c9c4d0ce..937a37e704f46dba457aa48882011e803c6a990d 100644
--- a/src/share/classes/java/time/temporal/Temporal.java
+++ b/src/share/classes/java/time/temporal/Temporal.java
@@ -95,15 +95,15 @@ import java.time.DateTimeException;
*
* A class should implement this interface if it meets three criteria:
- *
+ *
* Four examples make this clear:
- *
+ *
+ *
* Together these two values allow a year or month to be divided into weeks.
- *
+ *
*
+ *
*
* This class allows rules for identifying future transitions to be expressed.
* A rule might be written in many forms:
- *
+ *
* Time zone rules are expressed in one of three ways:
- *
+ *
* The mapping from a local date-time to an offset is not straightforward.
* There are three cases:
- *
+ *
* The mapping from a local date-time to an offset is not straightforward.
* There are three cases:
- *
+ *
* The mapping from a local date-time to an offset is not straightforward.
* There are three cases:
- *
+ *
+ *
*
* @param prolepticYear the proleptic-year to check, not validated for range
* @return true if the year is a leap year
diff --git a/src/share/classes/java/time/chrono/Era.java b/src/share/classes/java/time/chrono/Era.java
index 9cf57fc8fc1538f43ae7faae23515846295bb16d..ec65e3f7531518977fa3259e7bb097b8505498d8 100644
--- a/src/share/classes/java/time/chrono/Era.java
+++ b/src/share/classes/java/time/chrono/Era.java
@@ -111,11 +111,11 @@ public interface Era extends TemporalAccessor, TemporalAdjuster {
* All fields, including eras, have an associated numeric value.
* The meaning of the numeric value for era is determined by the chronology
* according to these principles:
- *
*
+ *
*
* @return the numeric era value
*/
diff --git a/src/share/classes/java/time/chrono/IsoChronology.java b/src/share/classes/java/time/chrono/IsoChronology.java
index eb71a1fe65ca8136cd7cf5c998317f3ca259cf2e..d45b042b9fa721b7485a533b360b8ff6a2e4c701 100644
--- a/src/share/classes/java/time/chrono/IsoChronology.java
+++ b/src/share/classes/java/time/chrono/IsoChronology.java
@@ -100,7 +100,7 @@ import java.util.Objects;
* de facto world calendar.
*
*
+ *
*
* @implSpec
* This class is immutable and thread-safe.
diff --git a/src/share/classes/java/time/chrono/IsoEra.java b/src/share/classes/java/time/chrono/IsoEra.java
index 15fa2e4cc6d8364f56ae92b6c2849f595d3f4e78..bd299691ace44d61324217ea0d12c6b5e10866f2 100644
--- a/src/share/classes/java/time/chrono/IsoEra.java
+++ b/src/share/classes/java/time/chrono/IsoEra.java
@@ -69,7 +69,7 @@ import java.time.DateTimeException;
* The ISO-8601 standard does not define eras.
* A definition has therefore been created with two eras - 'Current era' (CE) for
* years on or after 0001-01-01 (ISO), and 'Before current era' (BCE) for years before that.
- *
*
*
*
diff --git a/src/share/classes/java/time/chrono/MinguoChronology.java b/src/share/classes/java/time/chrono/MinguoChronology.java
index af0be986c933b226dbe7ffe0d3a7d8bd5a5709f7..8e26f7d43c0481b0a2455af34727ff47432c70b0 100644
--- a/src/share/classes/java/time/chrono/MinguoChronology.java
+++ b/src/share/classes/java/time/chrono/MinguoChronology.java
@@ -85,7 +85,7 @@ import java.util.Map;
* Dates are aligned such that {@code 0001-01-01 (Minguo)} is {@code 1912-01-01 (ISO)}.
*
+ *
*
* @implSpec
* This class is immutable and thread-safe.
diff --git a/src/share/classes/java/time/chrono/MinguoEra.java b/src/share/classes/java/time/chrono/MinguoEra.java
index 6bfdab2551d372d24fe78b7fe600b54e71ac4a69..fd96de196ee2498a986a875bd3571ae6559a7787 100644
--- a/src/share/classes/java/time/chrono/MinguoEra.java
+++ b/src/share/classes/java/time/chrono/MinguoEra.java
@@ -70,7 +70,7 @@ import java.time.DateTimeException;
* The current era, for years from 1 onwards, is known as the 'Republic of China' era.
* All previous years, zero or earlier in the proleptic count or one and greater
* in the year-of-era count, are part of the 'Before Republic of China' era.
- *
*
*
*
diff --git a/src/share/classes/java/time/chrono/ThaiBuddhistChronology.java b/src/share/classes/java/time/chrono/ThaiBuddhistChronology.java
index c41aa34c0f1511915160d6472219a3c6fefd9fc0..2ef5793586f5197e0c2409705c5dbad256549351 100644
--- a/src/share/classes/java/time/chrono/ThaiBuddhistChronology.java
+++ b/src/share/classes/java/time/chrono/ThaiBuddhistChronology.java
@@ -86,7 +86,7 @@ import java.util.Map;
* Dates are aligned such that {@code 2484-01-01 (Buddhist)} is {@code 1941-01-01 (ISO)}.
*
+ *
*
* @implSpec
* This class is immutable and thread-safe.
diff --git a/src/share/classes/java/time/chrono/ThaiBuddhistEra.java b/src/share/classes/java/time/chrono/ThaiBuddhistEra.java
index c549229d35ecd4d5ac1d2af1a1703590709e22b4..e3e6e86fa45311d5a9843a5771c78477126ae5de 100644
--- a/src/share/classes/java/time/chrono/ThaiBuddhistEra.java
+++ b/src/share/classes/java/time/chrono/ThaiBuddhistEra.java
@@ -70,7 +70,7 @@ import java.time.DateTimeException;
* The current era, for years from 1 onwards, is known as the 'Buddhist' era.
* All previous years, zero or earlier in the proleptic count or one and greater
* in the year-of-era count, are part of the 'Before Buddhist' era.
- *
*
*
*
diff --git a/src/share/classes/java/time/format/DateTimeFormatter.java b/src/share/classes/java/time/format/DateTimeFormatter.java
index 0c0a5979b14840326bbc5d4d68cb0658cf006db0..4109d20e590ebbde2d46066fba56a9c8c5cbe576 100644
--- a/src/share/classes/java/time/format/DateTimeFormatter.java
+++ b/src/share/classes/java/time/format/DateTimeFormatter.java
@@ -146,7 +146,7 @@ import java.util.Set;
* Some applications may need to use the older {@link Format java.text.Format}
* class for formatting. The {@link #toFormat()} method returns an
* implementation of {@code java.text.Format}.
- * Predefined Formatters
*
*
@@ -460,7 +460,7 @@ import java.util.Set;
*
+ *
*
+ *
*
+ *
*
+ *
*
+ *
*
+ *
*
+ *
*
+ *
*
+ *
*
+ *
*
+ *
*
+ *
*
+ *
*
+ *
*
+ *
*
+ *
*
+ *
* In addition, any of the elements may be decorated by padding, either with spaces or any other character.
*
*
+ *
* The "no offset" text controls what text is printed when the total amount of
* the offset fields to be output is zero.
* Example values would be 'Z', '+00:00', 'UTC' or 'GMT'.
@@ -921,14 +921,14 @@ public final class DateTimeFormatterBuilder {
* This appends a localized zone offset to the builder, the format of the
* localized offset is controlled by the specified {@link FormatStyle style}
* to this method:
- *
*
+ *
*
*
+ *
* During formatting, the chronology is obtained from the temporal object
* being formatted, which may have been overridden by
* {@link DateTimeFormatter#withChronology(Chronology)}.
diff --git a/src/share/classes/java/time/temporal/IsoFields.java b/src/share/classes/java/time/temporal/IsoFields.java
index e8ccff15f60e5582db9b6115b98346a46c32d9d3..8d9cc84f3c45589c3c5237f885abf4a8a8a6a9a3 100644
--- a/src/share/classes/java/time/temporal/IsoFields.java
+++ b/src/share/classes/java/time/temporal/IsoFields.java
@@ -72,12 +72,10 @@ import static java.time.temporal.ChronoUnit.YEARS;
import java.time.DateTimeException;
import java.time.Duration;
import java.time.LocalDate;
-import java.time.ZoneId;
import java.time.chrono.ChronoLocalDate;
import java.time.chrono.Chronology;
import java.time.chrono.IsoChronology;
import java.time.format.ResolverStyle;
-import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import java.util.Objects;
@@ -102,11 +100,11 @@ import sun.util.locale.provider.LocaleResources;
* October, November and December are in Q4.
*
*
+ *
*
*
*
Week based years
* The ISO-8601 standard was originally intended as a data interchange format,
@@ -114,18 +112,18 @@ import sun.util.locale.provider.LocaleResources;
* alternate way of expressing the date, based on the concept of week-based-year.
*
+ *
* The week-based-year itself is defined relative to the standard ISO proleptic year.
* It differs from the standard year in that it always starts on a Monday.
*
*
+ *
* There are 52 weeks in most week-based years, however on occasion there are 53 weeks.
*
*
*
diff --git a/src/share/classes/java/time/temporal/JulianFields.java b/src/share/classes/java/time/temporal/JulianFields.java
index f950d87201b9a9614237fb4a92512aaff0183f13..327037981eb4799666221ce3d36e7bffae6b016a 100644
--- a/src/share/classes/java/time/temporal/JulianFields.java
+++ b/src/share/classes/java/time/temporal/JulianFields.java
@@ -66,11 +66,9 @@ import static java.time.temporal.ChronoUnit.DAYS;
import static java.time.temporal.ChronoUnit.FOREVER;
import java.time.DateTimeException;
-import java.time.ZoneId;
import java.time.chrono.ChronoLocalDate;
import java.time.chrono.Chronology;
import java.time.format.ResolverStyle;
-import java.util.Collections;
import java.util.Map;
/**
@@ -116,7 +114,7 @@ public final class JulianFields {
* In {@linkplain ResolverStyle#STRICT strict mode} and {@linkplain ResolverStyle#SMART smart mode}
* the Julian Day value is validated against the range of valid values.
* In {@linkplain ResolverStyle#LENIENT lenient mode} no validation occurs.
- * Date Day-of-week Field values Astronomical and Scientific Notes
* The standard astronomical definition uses a fraction to indicate the time-of-day,
* thus 3.25 would represent the time 18:00, since days start at midday.
@@ -124,7 +122,7 @@ public final class JulianFields {
* The integer value for the Julian Day Number is the astronomical Julian Day value at midday
* of the date in question.
* This amounts to the astronomical Julian Day, rounded to an integer {@code JDN = floor(JD + 0.5)}.
- *
* | ISO date | Julian Day Number | Astronomical Julian Day |
* | 1970-01-01T00:00 | 2,440,588 | 2,440,587.5 |
@@ -164,7 +162,7 @@ public final class JulianFields {
* In {@linkplain ResolverStyle#STRICT strict mode} and {@linkplain ResolverStyle#SMART smart mode}
* the Modified Julian Day value is validated against the range of valid values.
* In {@linkplain ResolverStyle#LENIENT lenient mode} no validation occurs.
- *
Astronomical and Scientific Notes
*
* | ISO date | Modified Julian Day | Decimal MJD |
@@ -176,7 +174,7 @@ public final class JulianFields {
* | 1970-01-02T06:00 | 40,588 | 40,588.25 |
* | 1970-01-02T12:00 | 40,588 | 40,588.5 |
*
- * When to implement
*
+ *
*
*
+ *
*
* @implSpec
* This interface places no restrictions on the mutability of implementations,
diff --git a/src/share/classes/java/time/temporal/WeekFields.java b/src/share/classes/java/time/temporal/WeekFields.java
index 0edfa73e2177b22f9c9f629600243d39e9d4fa98..dcc459af93df171c6542ea3ed57dcef86594e842 100644
--- a/src/share/classes/java/time/temporal/WeekFields.java
+++ b/src/share/classes/java/time/temporal/WeekFields.java
@@ -64,7 +64,6 @@ package java.time.temporal;
import static java.time.temporal.ChronoField.DAY_OF_MONTH;
import static java.time.temporal.ChronoField.DAY_OF_WEEK;
import static java.time.temporal.ChronoField.DAY_OF_YEAR;
-import static java.time.temporal.ChronoField.EPOCH_DAY;
import static java.time.temporal.ChronoField.MONTH_OF_YEAR;
import static java.time.temporal.ChronoField.YEAR;
import static java.time.temporal.ChronoUnit.DAYS;
@@ -77,12 +76,9 @@ import java.io.InvalidObjectException;
import java.io.Serializable;
import java.time.DateTimeException;
import java.time.DayOfWeek;
-import java.time.ZoneId;
import java.time.chrono.ChronoLocalDate;
import java.time.chrono.Chronology;
import java.time.format.ResolverStyle;
-import java.util.Collections;
-import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import java.util.Objects;
@@ -119,16 +115,16 @@ import sun.util.locale.provider.LocaleResources;
* For example, the ISO-8601 standard considers Monday to be the first day-of-week.
*
*
Week of Month
* 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.
* 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.
- *
*
Date Day-of-week
diff --git a/src/share/classes/java/time/zone/ZoneOffsetTransitionRule.java b/src/share/classes/java/time/zone/ZoneOffsetTransitionRule.java
index 95c66e6f275803be79fe6099e890415eb51a0ab2..d0b182b2628c29969d4c041fd601fb164c4e7a09 100644
--- a/src/share/classes/java/time/zone/ZoneOffsetTransitionRule.java
+++ b/src/share/classes/java/time/zone/ZoneOffsetTransitionRule.java
@@ -83,12 +83,12 @@ import java.util.Objects;
*
+ *
* These different rule types can be expressed and queried.
*
* @implSpec
@@ -575,11 +575,11 @@ public final class ZoneOffsetTransitionRule implements Serializable {
* transition date-time.
*
*
+ *
*/
public static enum TimeDefinition {
/** The local date-time is expressed in terms of the UTC offset. */
diff --git a/src/share/classes/java/time/zone/ZoneRules.java b/src/share/classes/java/time/zone/ZoneRules.java
index 064a2d8f817dbce952435fcb0ae511fc615331ea..4ed12755c230c8fdeb69e328e5b51d76a778773a 100644
--- a/src/share/classes/java/time/zone/ZoneRules.java
+++ b/src/share/classes/java/time/zone/ZoneRules.java
@@ -508,7 +508,7 @@ public final class ZoneRules implements Serializable {
*
*
+ *
* Thus, for any given local date-time there can be zero, one or two valid offsets.
* This method returns the single offset in the Normal case, and in the Gap or Overlap
* case it returns the offset before the transition.
@@ -544,7 +544,7 @@ public final class ZoneRules implements Serializable {
*
*
+ *
* Thus, for any given local date-time there can be zero, one or two valid offsets.
* This method returns that list of valid offsets, which is a list of size 0, 1 or 2.
* In the case where there are two offsets, the earlier offset is returned at index 0
@@ -595,7 +595,7 @@ public final class ZoneRules implements Serializable {
*
*
+ *
* A transition is used to model the cases of a Gap or Overlap.
* The Normal case will return null.
*
*