On 17 March 2012 08:53, Emmanuel Bourg <[email protected]> wrote:
> IntelliJ IDEA complains about explicit boxing. Why do you change it?

Eclipse complains about implicit boxing.

But that's not why - I changed it because it makes the extra
processing explicit.

We're trying to make the code efficient, so using explicit conversions
means we can review whether the conversion is necessary or could be
avoided.

Leaving the explicit conversion in the code shows that we did intend
to do the conversion.

>
> Emmanuel Bourg
>
>
> Le 17/03/2012 05:12, [email protected] a écrit :
>
>> Author: sebb
>> Date: Sat Mar 17 04:12:16 2012
>> New Revision: 1301861
>>
>> URL: http://svn.apache.org/viewvc?rev=1301861&view=rev
>> Log:
>> @Override; explicit unboxing
>>
>> Modified:
>>
>> commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVRecord.java
>>
>> Modified:
>> commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVRecord.java
>> URL:
>> http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVRecord.java?rev=1301861&r1=1301860&r2=1301861&view=diff
>>
>> ==============================================================================
>> ---
>> commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVRecord.java
>> (original)
>> +++
>> commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVRecord.java
>> Sat Mar 17 04:12:16 2012
>> @@ -63,7 +63,7 @@ public class CSVRecord implements Serial
>>
>>          Integer index = mapping.get(name);
>>
>> -        return index != null ? values[index] : null;
>> +        return index != null ? values[index.intValue()] : null;
>>      }
>>
>>      public Iterator<String>  iterator() {
>> @@ -81,6 +81,7 @@ public class CSVRecord implements Serial
>>          return values.length;
>>      }
>>
>> +    @Override
>>      public String toString() {
>>          return Arrays.toString(values);
>>      }
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to