[
https://issues.apache.org/jira/browse/SLING-5589?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15183262#comment-15183262
]
Konrad Windszus commented on SLING-5589:
----------------------------------------
Actually I used {{org.apache.commons.collections.Predicate}} because of a lack
of any predefined filter functionality
(https://issues.apache.org/jira/browse/SLING-2723) but I am fine with having
our own. Now we do have e.g. {{Predicate}} in {{o.a.s.query.api}}
(https://github.com/apache/sling/blob/trunk/contrib/extensions/sling-query/src/main/java/org/apache/sling/query/api/Predicate.java)
but I think it would probably be a good idea to come up with something in the
API bundle.
> Remove dependency commons-collections
> -------------------------------------
>
> Key: SLING-5589
> URL: https://issues.apache.org/jira/browse/SLING-5589
> Project: Sling
> Issue Type: Improvement
> Components: Validation
> Reporter: Oliver Lietz
> Fix For: Validation 1.0.0
>
> Attachments: SLING-5589.patch
>
>
> The only class (interface) used from commons-collections is
> [{{org.apache.commons.collections.Predicate}}|http://commons.apache.org/proper/commons-collections/javadocs/api-3.2.2/org/apache/commons/collections/Predicate.html].
> We should use
> [{{java.util.function.Predicate}}|https://docs.oracle.com/javase/8/docs/api/java/util/function/Predicate.html]
> (which requires Java 8) or provide our own interface.
> [~cziegeler], [~kwin]: WDYT?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)