[
https://issues.apache.org/jira/browse/LANG-565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12790481#action_12790481
]
Stephen Colebourne commented on LANG-565:
-----------------------------------------
We tend to have get/set to support bean-based tooling, as part of [lang]s
mission to not be a framework.
I'm not sure being thread-safe helps StrSubstitutor as it is intended to be
used from a singe thread.
> Does StrSubstitutor really need setter methods for the fields that are
> settable via constructors?
> -------------------------------------------------------------------------------------------------
>
> Key: LANG-565
> URL: https://issues.apache.org/jira/browse/LANG-565
> Project: Commons Lang
> Issue Type: Improvement
> Reporter: Sebb
>
> Does StrSubstitutor really need setter methods for the fields that are
> settable via constructors?
> If these setters could be dropped, the instance variables could be made final.
> I think this would then make the class thread-safe, provided that the Map
> used by StrLookup is thread-safe.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.