Skip to content

Commit

Permalink
8346773: Fix unmatched brackets in some misc files
Browse files Browse the repository at this point in the history
Reviewed-by: kbarrett, alanb, rriggs, dholmes, erikj, liach
  • Loading branch information
MaxXSoft committed Jan 6, 2025
1 parent 9393897 commit f1d85ab
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion doc/hotspot-unit-tests.html
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ <h3 id="error-messages">Error messages</h3>
<p>All GoogleTest asserts print compared expressions and their values,
so there is no need to have them in error messages. Asserts print only
compared values, they do not print any of interim variables, e.g.
<code>ASSERT_TRUE((val1 == val2 &amp;&amp; isFail(foo(8)) || i == 18)</code>
<code>ASSERT_TRUE((val1 == val2 &amp;&amp; isFail(foo(8))) || i == 18)</code>
prints only one value. If you use some complex predicates, please
consider <code>EXPECT_PRED*</code> or <code>EXPECT_FORMAT_PRED</code>
assertions family, they check that a predicate returns true/success and
Expand Down
2 changes: 1 addition & 1 deletion doc/hotspot-unit-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ Provide informative, but not too verbose error messages.
All GoogleTest asserts print compared expressions and their values, so
there is no need to have them in error messages. Asserts print only
compared values, they do not print any of interim variables, e.g.
`ASSERT_TRUE((val1 == val2 && isFail(foo(8)) || i == 18)` prints only
`ASSERT_TRUE((val1 == val2 && isFail(foo(8))) || i == 18)` prints only
one value. If you use some complex predicates, please consider
`EXPECT_PRED*` or `EXPECT_FORMAT_PRED` assertions family, they check that
a predicate returns true/success and print out all parameters values.
Expand Down
4 changes: 2 additions & 2 deletions src/hotspot/share/jfr/metadata/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
$ jfr print dump.jfr
Programmatic access:
try (var rf = new RecordingFile(Path.of("dump.jfr)) {
try (var rf = new RecordingFile(Path.of("dump.jfr"))) {
while (rf.hasMoreEvents()) {
RecordedEvent e = rf.readEvent();
System.out.println(e.getName() + " " + e.getDuration()));
System.out.println(e.getName() + " " + e.getDuration());
}
};
!-->
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/prims/jvmti.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,7 @@ jvmtiEnv *jvmti;
<li><i>Timed wait?</i>
<ul>
<li>Indefinite (<datalink
id="JVMTI_THREAD_STATE_WAITING_INDEFINITELY"><code>JVMTI_THREAD_STATE_WAITING_INDEFINITELY</code></datalink></li>
id="JVMTI_THREAD_STATE_WAITING_INDEFINITELY"><code>JVMTI_THREAD_STATE_WAITING_INDEFINITELY</code></datalink>)</li>
<li>Timed (<datalink
id="JVMTI_THREAD_STATE_WAITING_WITH_TIMEOUT"><code>JVMTI_THREAD_STATE_WAITING_WITH_TIMEOUT</code></datalink>)</li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion src/java.base/share/man/java.md
Original file line number Diff line number Diff line change
Expand Up @@ -1311,7 +1311,7 @@ These `java` options control the runtime behavior of the Java HotSpot VM.
`-XX:+PreserveFramePointer`
: Selects between using the RBP register as a general purpose register
(`-XX:-PreserveFramePointer`) and using the RBP register to hold the frame
pointer of the currently executing method (`-XX:+PreserveFramePointer` . If
pointer of the currently executing method (`-XX:+PreserveFramePointer`). If
the frame pointer is available, then external profiling tools (for example,
Linux perf) can construct more accurate stack traces.

Expand Down
6 changes: 3 additions & 3 deletions src/java.base/share/man/keytool.md
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ perform.

- {`-noprompt`}: Do not prompt

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

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

## Requesting a Signed Certificate from a CA

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

For `keytool` and `jarsigner`, you can specify a keystore type at the
Expand Down
2 changes: 1 addition & 1 deletion src/jdk.compiler/share/man/javac.md
Original file line number Diff line number Diff line change
Expand Up @@ -1667,7 +1667,7 @@ internal and subject to change at any time.
public static int m() {
try {
throw new NullPointerException();
} catch (NullPointerException(); {
} catch (NullPointerException e) {
System.err.println("Caught NullPointerException.");
return 1;
} finally {
Expand Down

1 comment on commit f1d85ab

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.