[ https://issues.apache.org/jira/browse/SLING-4199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14227398#comment-14227398 ]
Radu Cotescu commented on SLING-4199: ------------------------------------- Indeed, there are cases when a null value doesn't mean a failure - see the {{JsUseProvider}}. > Remove ProviderOutcome > ---------------------- > > Key: SLING-4199 > URL: https://issues.apache.org/jira/browse/SLING-4199 > Project: Sling > Issue Type: Improvement > Components: Extensions > Reporter: Konrad Windszus > Fix For: Scripting Sightly Engine 1.0.0 > > > What is the reason for having the {{ProviderOutcome}} interface > (https://github.com/fmeschbe/sling/blob/trunk/contrib/scripting/sightly/engine/src/main/java/org/apache/sling/scripting/sightly/use/ProviderOutcome.java). > To me it seems like it acts as a wrapper around a boolean and an Object. But > since in the case of failure there is never an Object being returned, why > can't we just rely on the Object instead and just assume a failure in case > null was returned? -- This message was sent by Atlassian JIRA (v6.3.4#6332)