From 58265f4e386935e0fc22f2907025d257e4d90567 Mon Sep 17 00:00:00 2001 From: Petr Jurak Date: Mon, 15 Jan 2018 14:06:26 +0100 Subject: [PATCH] JBEAP-13597 Trailing comma present when new mechanism-configuration is created --- .../ui/factory/GenericAuthenticationMechanismFactoryEditor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/src/main/java/org/jboss/as/console/client/shared/subsys/elytron/ui/factory/GenericAuthenticationMechanismFactoryEditor.java b/gui/src/main/java/org/jboss/as/console/client/shared/subsys/elytron/ui/factory/GenericAuthenticationMechanismFactoryEditor.java index d2376c491..cd4330236 100644 --- a/gui/src/main/java/org/jboss/as/console/client/shared/subsys/elytron/ui/factory/GenericAuthenticationMechanismFactoryEditor.java +++ b/gui/src/main/java/org/jboss/as/console/client/shared/subsys/elytron/ui/factory/GenericAuthenticationMechanismFactoryEditor.java @@ -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); } };