< prev index next >
jdk/src/java.logging/share/classes/java/util/logging/LogRecord.java
Print this page
@@ -136,11 +136,11 @@
*/
private String resourceBundleName;
/**
* Event time.
- * @since 1.9
+ * @since 9
*/
private Instant instant;
/**
* @serialField level Level Logging message level
@@ -156,11 +156,11 @@
* @serialField nanoAdjustment int Nanoseconds adjustment to the millisecond of
* event time - calculated as getInstant().getNano() % 1000_000
* The event time instant can be reconstructed using
* <code>Instant.ofEpochSecond(millis/1000, (millis % 1000) * 1000_000 + nanoAdjustment)</code>
* <p>
- * Since: 1.9
+ * Since: 9
* @serialField thrown Throwable The Throwable (if any) associated with log
* message
* @serialField loggerName String Name of the source Logger
* @serialField resourceBundleName String Resource bundle name to localized
* log message
@@ -205,11 +205,11 @@
* Construct a LogRecord with the given level and message values.
* <p>
* The sequence property will be initialized with a new unique value.
* These sequence values are allocated in increasing order within a VM.
* <p>
- * Since JDK 1.9, the event time is represented by an {@link Instant}.
+ * Since JDK 9, the event time is represented by an {@link Instant}.
* The instant property will be initialized to the {@linkplain
* Instant#now() current instant}, using the best available
* {@linkplain Clock#systemUTC() clock} on the system.
* <p>
* The thread ID property will be initialized with a unique ID for
@@ -503,11 +503,11 @@
/**
* Gets the instant that the event occurred.
*
* @return the instant that the event occurred.
*
- * @since 1.9
+ * @since 9
*/
public Instant getInstant() {
return instant;
}
@@ -523,11 +523,11 @@
*
* @throws NullPointerException if {@code instant} is null.
* @throws ArithmeticException if numeric overflow would occur while
* calling {@link Instant#toEpochMilli() instant.toEpochMilli()}.
*
- * @since 1.9
+ * @since 9
*/
public void setInstant(Instant instant) {
instant.toEpochMilli();
this.instant = instant;
}
< prev index next >