[
https://issues.apache.org/jira/browse/LUCENE-2285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12838951#action_12838951
]
Uwe Schindler commented on LUCENE-2285:
---------------------------------------
Hi Shai,
I will review your patch over the weekend and commit all changes except:
- Snowball files
- QueryParser and other autogenerated files
- removed casts, but only those who are important to prevent bugs in future:
explicit (long) to prevent overflows -- we added lots of them (if we remove
them, somebody who changes the code will not be aware, that an overflow may
occur - see MMapDirectory), char/int conversions in analyzers. I will for sure
keep the removal of unused pre-generics casts.
The TEST_VERSION_CURRENT changes will be committed in a separate patch. After I
had done this, i will post an updated patch here.
It this an option?
> Code cleanup from all sorts of (trivial) warnings
> -------------------------------------------------
>
> Key: LUCENE-2285
> URL: https://issues.apache.org/jira/browse/LUCENE-2285
> Project: Lucene - Java
> Issue Type: Improvement
> Reporter: Shai Erera
> Assignee: Uwe Schindler
> Priority: Minor
> Fix For: 3.1
>
> Attachments: LUCENE-2285.patch, LUCENE-2285.patch
>
>
> I would like to do some code cleanup and remove all sorts of trivial
> warnings, like unnecessary casts, problems w/ javadocs, unused variables,
> redundant null checks, unnecessary semicolon etc. These are all very trivial
> and should not pose any problem.
> I'll create another issue for getting rid of deprecated code usage, like
> LuceneTestCase and all sorts of deprecated constructors. That's also trivial
> because it only affects Lucene code, but it's a different type of change.
> Another issue I'd like to create is about introducing more generics in the
> code, where it's missing today - not changing existing API. There are many
> places in the code like that.
> So, with you permission, I'll start with the trivial ones first, and then
> move on to the others.
--
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: [email protected]
For additional commands, e-mail: [email protected]