MenuUtils creates a large number of ThreadLocals
------------------------------------------------
Key: TRINIDAD-2196
URL: https://issues.apache.org/jira/browse/TRINIDAD-2196
Project: MyFaces Trinidad
Issue Type: Bug
Components: Components
Affects Versions: 1.2.12-core
Reporter: Stevan Malesevic
org.apache.myfaces.trinidad.menu.MenuUtils::loadBundle creates a lot of
ThreadLocals object which then have a high CPU ipmact at the end of request
when they need to be removed
It is not clear:
1) Why ThreadLocal is needed at the first place here
2) Even if it is needed why create it before checking map for existence of
bundle
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira