[
https://issues.apache.org/jira/browse/WW-5034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16853789#comment-16853789
]
ASF GitHub Bot commented on WW-5034:
------------------------------------
JCgH4164838Gh792C124B5 commented on pull request #360: [WW-5034] Forward port -
Minor enhancement/fix to AbstractLocalizedTextProvider:
URL: https://github.com/apache/struts/pull/360
[WW-5034] Forward port - Minor enhancement/fix to
AbstractLocalizedTextProvider:
- Forward port of equivalent change from 2.5.x.
- Made "constant" RELOADED static to save an initialization every time.
- Made ineffective clearBundle(final String bundleName) method a "no-op"
with a debug log indicating the same. Marked method as deprecated.
- Introduced protected clearBundle(final String bundleName, Locale locale)
method for use by descendants, with debug log output when called.
- Introduced protected clearMissingBundlesCache() method for use by
descendants, with debug log when called.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Minor enhancement/fix to AbstractLocalizedTextProvider
> ------------------------------------------------------
>
> Key: WW-5034
> URL: https://issues.apache.org/jira/browse/WW-5034
> Project: Struts 2
> Issue Type: Improvement
> Components: Core
> Affects Versions: 2.5.20
> Reporter: James Chaplin
> Priority: Minor
> Labels: pull-request-available
> Fix For: 2.5.21, 2.6
>
>
> Hello Apache Struts Team.
> This Jira issue is to track a minor enhancement/fix for the
> AbstractLocalizedTextProvider.
> - Made a "constant" static to save an initialization for instance members.
> - Updated clearBundle() method comment for accuracy, added debug log output.
> - Introduced a protected clearBundle(bundle, locale) method, with debug log
> output.
> - Introduced protected clearMissingBundlesCache() method, with debug log
> output.
> The additional methods could allow for more flexible custom
> AbstractLocalizedTextProvider descendants for use in scenarios where
> applications desire different behaviour.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)