You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by jo...@apache.org on 2024/07/22 14:03:09 UTC
(sling-org-apache-sling-xss) 01/01: SLING-12388 remove duplicate literals
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 <jo...@apache.org>
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());
}