lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Woody Anderson (JIRA)" <j...@apache.org>
Subject [jira] Created: (LUCENE-2547) minimize autoboxing in NumericField
Date Sun, 18 Jul 2010 06:00:50 GMT
minimize autoboxing in NumericField
-----------------------------------

                 Key: LUCENE-2547
                 URL: https://issues.apache.org/jira/browse/LUCENE-2547
             Project: Lucene - Java
          Issue Type: Improvement
    Affects Versions: 3.0.2
            Reporter: Woody Anderson
             Fix For: 4.0, 3.0.2


dicIf you already have a Integer/Long/Double etc. numericField.setLongValue(long) causes an
unnecessary auto-unbox.
actually, since internal to setLongValue there is:
{code}
fieldsData = Long.valueOf(value);
{code}
then, there is an explicit box anyway, so this makes setLongValue(Long) with an auto-box of
long roughly the same as setLongValue(long), but better if you started with a Long.
Long being replaceable with Integer, Float, Double etc.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message