You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by GitBox <gi...@apache.org> on 2019/01/08 11:35:01 UTC

[GitHub] yesil opened a new pull request #2: Adds support for Java 8 Optionals

yesil opened a new pull request #2: Adds support for Java 8 Optionals
URL: https://github.com/apache/sling-org-apache-sling-scripting-sightly-runtime/pull/2
 
 
   It is convenient to use Java 8 Stream API for, among many other benefits:  
   
   - Lazily initialising optional values
     e.g: in the Sling models.
   - Finding / filtering data in the collections
     e.g: Sling resources that must meet certain criteria expressed in code.
   
   Also
   
   - Having to unbox Optionals for HTL adds extra overhead to the code.
   - `data-sly-test` does currently consider any empty `Optional` as `true`.
   
   With this PR, I propose to add native `Optional` support to HTL.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services