[
https://issues.apache.org/jira/browse/SLING-3020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13742049#comment-13742049
]
Carsten Ziegeler commented on SLING-3020:
-----------------------------------------
In rev 1514626 I added a copy constructor to result log, and the result log is
now copied to an internal log if passed into the Result constructor. This makes
the result completely immutable
> Immutable HealthCheck Results
> -----------------------------
>
> Key: SLING-3020
> URL: https://issues.apache.org/jira/browse/SLING-3020
> Project: Sling
> Issue Type: Improvement
> Components: Health Check
> Reporter: Bertrand Delacretaz
> Assignee: Bertrand Delacretaz
> Priority: Minor
>
> As discussed on list, I'll change the Result class to be immutable and allow
> for both single-value and log-based results:
> Result is immutable.
> Result has two constructors, one that takes a Status and a message String and
> one that takes a ResultLog, and sets the Result status to
> ResultLog.getStatus().
> The ResultLog is a list of messages, each with a Status and a message String.
> It's getStatus() method returns the highest Status that was added to it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira