8276982: VM.class_hierarchy jcmd help output and man page text needs clarifications/improvements

Reviewed-by: stuefe, dholmes, sspitsyn
This commit is contained in:
Chris Plummer 2021-12-16 23:25:07 +00:00
parent 197c9f5ac8
commit 7ce4aa8942
2 changed files with 6 additions and 5 deletions

View File

@ -906,8 +906,9 @@ void CompilerDirectivesClearDCmd::execute(DCmdSource source, TRAPS) {
ClassHierarchyDCmd::ClassHierarchyDCmd(outputStream* output, bool heap) :
DCmdWithParser(output, heap),
_print_interfaces("-i", "Inherited interfaces should be printed.", "BOOLEAN", false, "false"),
_print_subclasses("-s", "If a classname is specified, print its subclasses. "
"Otherwise only its superclasses are printed.", "BOOLEAN", false, "false"),
_print_subclasses("-s", "If a classname is specified, print its subclasses "
"in addition to its superclasses. Without this option only the "
"superclasses will be printed.", "BOOLEAN", false, "false"),
_classname("classname", "Name of class whose hierarchy should be printed. "
"If not specified, all class hierarchies are printed.",
"STRING", false) {

View File

@ -873,9 +873,9 @@ The following \f[I]options\f[R] must be specified using either
\f[CB]\-i\f[R]: (Optional) Inherited interfaces should be printed.
(BOOLEAN, false)
.IP \[bu] 2
\f[CB]\-s\f[R]: (Optional) If a class name is specified, it prints the
subclasses.
If the class name is not specified, only the superclasses are printed.
\f[CB]\-s\f[R]: (Optional) If a classname is specified, print its
subclasses in addition to its superclasses.
Without this option only the superclasses will be printed.
(BOOLEAN, false)
.PP
\f[I]arguments\f[R]: