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

Adrian Cumiskey commented on OGNL-37:
-------------------------------------

Its actually worse, the reason ConcurrentModificationException never happened 
in the previous revision was because the map.remove( value ) operation always 
requires a key of type String to have a possibility to remove the Entry.  It 
was completely redundant code that would never have possibilty to mutate the 
map.  Thanks again for the swift processing of my patch. 
                
> [PATCH] Findbugs fixes
> ----------------------
>
>                 Key: OGNL-37
>                 URL: https://issues.apache.org/jira/browse/OGNL-37
>             Project: OGNL
>          Issue Type: Improvement
>            Reporter: Adrian Cumiskey
>            Assignee: Maurizio Cucchiara
>            Priority: Minor
>         Attachments: patch-OGNL37.txt
>
>
> ExpressionNode: Use StringBuilder instead of String concatenation with '+'.
> ObjectIndexedPropertyDescriptor: Provide equals() and hashcode() 
> implementation to override PropertyDescriptor.
> ExpressionCompiler: Remove redundant attempt to remove LocalReference key 
> (keys are always of type String).
> ASTMethod: Use StringBuilder instead of String concatenation with '+'.
> DeclaredMethodCacheEntry: Modified equals() implementation to take account of 
> super class fields.
> OgnlRuntime: Made static ints final.  Use Map.entrySet instead of Map.keySet 
> for better performance.  Javadoc improvements.
> ASTChain: Remove int boxing, lets rely on autoboxing.
> ArrayPropertyAccessor: Remove unnecessary int boxing and redundant code.
> OgnlOps: use valueOf() instead of new for boxing.  Adjust unnecessary 
> conditional checking.

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

        

Reply via email to