[ 
https://issues.apache.org/jira/browse/OFBIZ-9695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dennis Balkir updated OFBIZ-9695:
---------------------------------
    Attachment: OFBIZ-9695_org.apache.ofbiz.widget.cache_bugfixes.patch

- Diamond Operators fixed

class WidgetContextCacheKey:
- Line 137 and following: optimized the performance with the use of {{entrySet}}

> [FB] Package org.apache.ofbiz.widget.cache
> ------------------------------------------
>
>                 Key: OFBIZ-9695
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-9695
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Dennis Balkir
>            Priority: Minor
>         Attachments: OFBIZ-9695_org.apache.ofbiz.widget.cache_bugfixes.patch
>
>
> - WidgetContextCacheKey.java:140, WMI_WRONG_MAP_ITERATOR
> WMI: org.apache.ofbiz.widget.cache.WidgetContextCacheKey.toString() makes 
> inefficient use of keySet iterator instead of entrySet iterator
> This method accesses the value of a Map entry, using a key that was retrieved 
> from a keySet iterator. It is more efficient to use an iterator on the 
> entrySet of the map, to avoid the Map.get(key) lookup.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to