This is an automated email from the ASF dual-hosted git repository.

joerghoh pushed a commit to branch SLING-12388-remove_duplicate_literals
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-xss.git

commit a2391d0ba683c480572b8e551147559e0587d626
Author: Joerg Hoh <[email protected]>
AuthorDate: Mon Jul 22 16:02:26 2024 +0200

    SLING-12388 remove duplicate literals
---
 src/main/java/org/apache/sling/xss/impl/xml/Attribute.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/main/java/org/apache/sling/xss/impl/xml/Attribute.java 
b/src/main/java/org/apache/sling/xss/impl/xml/Attribute.java
index b553bad..4882d2b 100644
--- a/src/main/java/org/apache/sling/xss/impl/xml/Attribute.java
+++ b/src/main/java/org/apache/sling/xss/impl/xml/Attribute.java
@@ -85,6 +85,7 @@ public class Attribute {
         return getLiteralList().stream()
                 .map(Literal::getValue)
                 .map(String::toLowerCase)
+                .distinct()
                 .collect(Collectors.toList());
     }
 

Reply via email to