8278137: JFR: PrettyWriter uses incorrect year specifier

Reviewed-by: egahlin
This commit is contained in:
Aleksey Shipilev 2021-12-03 15:42:18 +00:00
parent f7237793ff
commit 53a4342783

View File

@ -59,7 +59,7 @@ import jdk.jfr.internal.Utils;
*/
public final class PrettyWriter extends EventPrintWriter {
private static final String TYPE_OLD_OBJECT = Type.TYPES_PREFIX + "OldObject";
private static final DateTimeFormatter TIME_FORMAT = DateTimeFormatter.ofPattern("HH:mm:ss.SSS (YYYY-MM-dd)");
private static final DateTimeFormatter TIME_FORMAT = DateTimeFormatter.ofPattern("HH:mm:ss.SSS (yyyy-MM-dd)");
private static final Long ZERO = 0L;
private boolean showIds;
private RecordedEvent currentEvent;