Skip to content

Commit d613459

Browse files
committed
8265407: JFR: Fix Typos
Reviewed-by: mgronlun
1 parent 4dcaac1 commit d613459

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/jdk.jfr/share/classes/jdk/jfr/internal/PlatformRecording.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ public boolean isToDisk() {
373373
public void setMaxSize(long maxSize) {
374374
synchronized (recorder) {
375375
if (getState() == RecordingState.CLOSED) {
376-
throw new IllegalStateException("Can't set max age when recording is closed");
376+
throw new IllegalStateException("Can't set max size when recording is closed");
377377
}
378378
this.maxSize = maxSize;
379379
trimToSize();

src/jdk.management.jfr/share/classes/jdk/management/jfr/RemoteRecordingStream.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -65,7 +65,6 @@
6565
* usage on a remote host and print the events to standard out.
6666
*
6767
* <pre>
68-
* {
6968
* {@literal
7069
* String host = "com.example";
7170
* int port = 4711;
@@ -83,7 +82,7 @@
8382
* rs.onEvent("jdk.GCPhasePause", System.out::println);
8483
* rs.start();
8584
* }
86-
* }
85+
* }
8786
* </pre>
8887
*
8988
* @since 16

0 commit comments

Comments
 (0)