[ 
https://issues.apache.org/jira/browse/LUCENE-1855?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12749292#action_12749292
 ] 

Uwe Schindler commented on LUCENE-1855:
---------------------------------------

As I already started to move Lucene to Java 1.5, here an idea, how to get the 
generics in:

I would propose to switch on all "unchecked" warnings (as in the supplied 
patch) by the <compilerarg/> in ant. The problem is then, that there are 
hundreds of warnings printed out. I would like to then add a 
@SuppressWarnings("unchecked") to all classes, that are not yet rewritten to 
generics for collections and other generified java things (like Class<?> in 
AttributeSource). The warnings should then disappear. We could then start to 
search for SuppressWarnings annotations in the source and start the classes 
one-by-one and add generics. By this it is simplier, because you only get 
warnings for the class you are working on.

What do you think?

> Change AttributeSource API to use generics
> ------------------------------------------
>
>                 Key: LUCENE-1855
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1855
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Analysis
>            Reporter: Michael Busch
>            Assignee: Uwe Schindler
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: LUCENE-1855.patch
>
>
> The AttributeSource API will be easier to use with JDK 1.5 generics.
> Uwe, if you started working on a patch for this already feel free to assign 
> this to you.

-- 
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]

Reply via email to