Skip to content

Commit f1d85ab

Browse files
committed
8346773: Fix unmatched brackets in some misc files
Reviewed-by: kbarrett, alanb, rriggs, dholmes, erikj, liach
1 parent 9393897 commit f1d85ab

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

doc/hotspot-unit-tests.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ <h3 id="error-messages">Error messages</h3>
245245
<p>All GoogleTest asserts print compared expressions and their values,
246246
so there is no need to have them in error messages. Asserts print only
247247
compared values, they do not print any of interim variables, e.g.
248-
<code>ASSERT_TRUE((val1 == val2 &amp;&amp; isFail(foo(8)) || i == 18)</code>
248+
<code>ASSERT_TRUE((val1 == val2 &amp;&amp; isFail(foo(8))) || i == 18)</code>
249249
prints only one value. If you use some complex predicates, please
250250
consider <code>EXPECT_PRED*</code> or <code>EXPECT_FORMAT_PRED</code>
251251
assertions family, they check that a predicate returns true/success and

doc/hotspot-unit-tests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ Provide informative, but not too verbose error messages.
172172
All GoogleTest asserts print compared expressions and their values, so
173173
there is no need to have them in error messages. Asserts print only
174174
compared values, they do not print any of interim variables, e.g.
175-
`ASSERT_TRUE((val1 == val2 && isFail(foo(8)) || i == 18)` prints only
175+
`ASSERT_TRUE((val1 == val2 && isFail(foo(8))) || i == 18)` prints only
176176
one value. If you use some complex predicates, please consider
177177
`EXPECT_PRED*` or `EXPECT_FORMAT_PRED` assertions family, they check that
178178
a predicate returns true/success and print out all parameters values.

src/hotspot/share/jfr/metadata/metadata.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@
4646
$ jfr print dump.jfr
4747
4848
Programmatic access:
49-
try (var rf = new RecordingFile(Path.of("dump.jfr)) {
49+
try (var rf = new RecordingFile(Path.of("dump.jfr"))) {
5050
while (rf.hasMoreEvents()) {
5151
RecordedEvent e = rf.readEvent();
52-
System.out.println(e.getName() + " " + e.getDuration()));
52+
System.out.println(e.getName() + " " + e.getDuration());
5353
}
5454
};
5555
!-->

src/hotspot/share/prims/jvmti.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1218,7 +1218,7 @@ jvmtiEnv *jvmti;
12181218
<li><i>Timed wait?</i>
12191219
<ul>
12201220
<li>Indefinite (<datalink
1221-
id="JVMTI_THREAD_STATE_WAITING_INDEFINITELY"><code>JVMTI_THREAD_STATE_WAITING_INDEFINITELY</code></datalink></li>
1221+
id="JVMTI_THREAD_STATE_WAITING_INDEFINITELY"><code>JVMTI_THREAD_STATE_WAITING_INDEFINITELY</code></datalink>)</li>
12221222
<li>Timed (<datalink
12231223
id="JVMTI_THREAD_STATE_WAITING_WITH_TIMEOUT"><code>JVMTI_THREAD_STATE_WAITING_WITH_TIMEOUT</code></datalink>)</li>
12241224
</ul>

src/java.base/share/man/java.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1311,7 +1311,7 @@ These `java` options control the runtime behavior of the Java HotSpot VM.
13111311
`-XX:+PreserveFramePointer`
13121312
: Selects between using the RBP register as a general purpose register
13131313
(`-XX:-PreserveFramePointer`) and using the RBP register to hold the frame
1314-
pointer of the currently executing method (`-XX:+PreserveFramePointer` . If
1314+
pointer of the currently executing method (`-XX:+PreserveFramePointer`). If
13151315
the frame pointer is available, then external profiling tools (for example,
13161316
Linux perf) can construct more accurate stack traces.
13171317

src/java.base/share/man/keytool.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ perform.
662662

663663
- {`-noprompt`}: Do not prompt
664664

665-
- {`-addprovider` *name* \[`-providerarg` *arg*\]: Add security provider
665+
- {`-addprovider` *name* \[`-providerarg` *arg*\]}: Add security provider
666666
by name (such as SunPKCS11) with an optional configure argument.
667667

668668
- {`-providerclass` *class* \[`-providerarg` *arg*\]}: Add security
@@ -1617,7 +1617,7 @@ name information, the keystore password, and the private key password.
16171617
The rest of the examples assume that you responded to the prompts with values
16181618
equal to those specified in the first `-genkeypair` command. For example, a
16191619
distinguished name of
1620-
`cn=`*myname*`, ou=`*mygroup*`, o=`*mycompany*`, c=`*mycountry*).
1620+
`cn=`*myname*`, ou=`*mygroup*`, o=`*mycompany*`, c=`*mycountry*.
16211621

16221622
## Requesting a Signed Certificate from a CA
16231623

@@ -1914,7 +1914,7 @@ Keystore implementation
19141914
The `keytool` command works on any file-based keystore implementation. It
19151915
treats the keystore location that is passed to it at the command line as a
19161916
file name and converts it to a `FileInputStream`, from which it loads the
1917-
keystore information.)The `jarsigner` commands can read a keystore from any
1917+
keystore information. The `jarsigner` commands can read a keystore from any
19181918
location that can be specified with a URL.
19191919

19201920
For `keytool` and `jarsigner`, you can specify a keystore type at the

src/jdk.compiler/share/man/javac.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1667,7 +1667,7 @@ internal and subject to change at any time.
16671667
public static int m() {
16681668
try {
16691669
throw new NullPointerException();
1670-
} catch (NullPointerException(); {
1670+
} catch (NullPointerException e) {
16711671
System.err.println("Caught NullPointerException.");
16721672
return 1;
16731673
} finally {

0 commit comments

Comments
 (0)