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

Christopher Tubbs resolved THRIFT-5014.
---------------------------------------
    Fix Version/s: 0.14.0
       Resolution: Fixed

> Do Direct Comparison on Raw Values Instead of Objects
> -----------------------------------------------------
>
>                 Key: THRIFT-5014
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5014
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Java - Compiler
>    Affects Versions: 0.13.0
>            Reporter: David Mollitor
>            Assignee: David Mollitor
>            Priority: Minor
>             Fix For: 0.14.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Java compiler currently generates:
> {code:java}
>     lastComparison = 
> java.lang.Boolean.valueOf(isSetName()).compareTo(other.isSetName());
>     if (lastComparison != 0) {
>       return lastComparison;
>     }
> {code}
> Instead, use {{Boolean#compare}} to compare the raw values instead of having 
> to call {{Boolean.ValueOf}} first.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to