Skip to content
This repository has been archived by the owner on Mar 15, 2022. It is now read-only.

JBEAP-13597 Trailing comma present when new mechanism-configuration is created #452

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public String getValue(ModelNode node) {
for (Property prop: node.asPropertyList()) {
content.append(prop.getName()).append(": ").append(prop.getValue().asString()).append(", ");
}
return StringUtils.shortenStringIfNecessary(content.toString(), 120);
return StringUtils.shortenStringIfNecessary(content.toString().replaceAll(", $", ""), 120);
}
};

Expand Down