[jira] [Commented] (OFBIZ-5331) Change EntityComparisonOperator to use compareTo()

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-5331) Change EntityComparisonOperator to use compareTo()

Nicolas Malin (Jira)

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

Adrian Crum commented on OFBIZ-5331:
------------------------------------

Looks good to me.
               

> Change EntityComparisonOperator to use compareTo()
> --------------------------------------------------
>
>                 Key: OFBIZ-5331
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5331
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>            Reporter: Joe Eckard
>            Priority: Trivial
>         Attachments: patch.txt
>
>
> The methods compareEqual() and compareNotEqual() both use equals() instead of compareTo() which can be problematic when used to compare BigDecimal objects.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira