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:08 UTC
(sling-org-apache-sling-xss) branch SLING-12388-remove_duplicate_literals created (now a2391d0)
This is an automated email from the ASF dual-hosted git repository.
joerghoh pushed a change to branch SLING-12388-remove_duplicate_literals
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-xss.git
at a2391d0 SLING-12388 remove duplicate literals
This branch includes the following new commits:
new a2391d0 SLING-12388 remove duplicate literals
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(sling-org-apache-sling-xss) 01/01: SLING-12388 remove duplicate literals
Posted by jo...@apache.org.
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());
}