lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shai Erera (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LUCENE-2290) Remove unnecessary String concatenation in IndexWriter
Date Sun, 28 Feb 2010 11:06:05 GMT

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

Shai Erera updated LUCENE-2290:
-------------------------------

    Attachment: LUCENE--2290.patch

Patch w/ the mentioned fixes.

> Remove unnecessary String concatenation in IndexWriter
> ------------------------------------------------------
>
>                 Key: LUCENE-2290
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2290
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>            Reporter: Shai Erera
>            Priority: Minor
>             Fix For: 3.1
>
>         Attachments: LUCENE--2290.patch
>
>
> I've noticed a couple of places in IndexWriter where a boolean string is created by bool
+ "", or integer by int + "". There are some places (in setDiagonstics) where a string is
concatenated with an empty String ...
> The patch uses Boolean.toString and Integer.toString, as well as remove the unnecessary
str + "".

-- 
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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message