From e9f8e4022af77b37d0fa7ffdaf1302ca0607dac2 Mon Sep 17 00:00:00 2001 From: Stefan Seifert Date: Mon, 9 Sep 2024 15:29:38 +0200 Subject: [PATCH] cosmetic: eliminate code warnings --- .../io/wcm/wcm/ui/clientlibs/components/HtmlTagBuilder.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/io/wcm/wcm/ui/clientlibs/components/HtmlTagBuilder.java b/src/main/java/io/wcm/wcm/ui/clientlibs/components/HtmlTagBuilder.java index b5a0919..1e9038b 100644 --- a/src/main/java/io/wcm/wcm/ui/clientlibs/components/HtmlTagBuilder.java +++ b/src/main/java/io/wcm/wcm/ui/clientlibs/components/HtmlTagBuilder.java @@ -70,9 +70,9 @@ String build() { for (Map.Entry attr : this.attrs.entrySet()) { markup.append(" ").append(attr.getKey()); if (attr.getValue() != null) { - markup.append("=\""); - markup.append(xssApi.encodeForHTMLAttr(attr.getValue())); - markup.append("\""); + markup.append("=\"") + .append(xssApi.encodeForHTMLAttr(attr.getValue())) + .append("\""); } } markup.append(">");