struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-5034) Minor enhancement/fix to AbstractLocalizedTextProvider
Date Mon, 03 Jun 2019 05:41:00 GMT

    [ https://issues.apache.org/jira/browse/WW-5034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16854233#comment-16854233
] 

ASF subversion and git services commented on WW-5034:
-----------------------------------------------------

Commit 5c30e0d5c6ed8c6237f1e3705c8639a7f7a35214 in struts's branch refs/heads/master from
JCgH4164838Gh792C124B5
[ https://gitbox.apache.org/repos/asf?p=struts.git;h=5c30e0d ]

[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.


> 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)

Mime
View raw message