You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (Jira)" <ji...@apache.org> on 2021/10/28 04:53:00 UTC

[jira] [Resolved] (SLING-10894) Allow null for SlingUriBuilder.setSelectors

     [ https://issues.apache.org/jira/browse/SLING-10894?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler resolved SLING-10894.
--------------------------------------
    Resolution: Fixed

https://github.com/apache/sling-org-apache-sling-api/commit/6a5be1ef28becae251f13a5d2830d6a2dffe4a9c

> Allow null for SlingUriBuilder.setSelectors
> -------------------------------------------
>
>                 Key: SLING-10894
>                 URL: https://issues.apache.org/jira/browse/SLING-10894
>             Project: Sling
>          Issue Type: Improvement
>          Components: API
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>            Priority: Major
>             Fix For: API 2.24.0
>
>
> setSelectors does currently not allow to pass in null . This requires client code to check for null before calling the builder method and usually breaks the fluent builder pattern.
> We should allow null and treat it as an empty array



--
This message was sent by Atlassian Jira
(v8.3.4#803005)