Skip to content

Commit

Permalink
8305680: Remove Permissions from jcmd help output
Browse files Browse the repository at this point in the history
Reviewed-by: cjplummer, sspitsyn
  • Loading branch information
kevinjwalls committed Apr 6, 2023
1 parent 8db1dd0 commit 0a34018
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/hotspot/share/services/diagnosticCommand.cpp
Expand Up @@ -193,16 +193,6 @@ void HelpDCmd::execute(DCmdSource source, TRAPS) {
factory->is_enabled() ? "" : " [disabled]");
output()->print_cr("%s", factory->description());
output()->print_cr("\nImpact: %s", factory->impact());
JavaPermission p = factory->permission();
if(p._class != nullptr) {
if(p._action != nullptr) {
output()->print_cr("\nPermission: %s(%s, %s)",
p._class, p._name == nullptr ? "null" : p._name, p._action);
} else {
output()->print_cr("\nPermission: %s(%s)",
p._class, p._name == nullptr ? "null" : p._name);
}
}
output()->cr();
cmd = factory->create_resource_instance(output());
if (cmd != nullptr) {
Expand Down

1 comment on commit 0a34018

@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.