lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-1855) Change AttributeSource API to use generics
Date Sun, 30 Aug 2009 17:43:32 GMT

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


Mime
View raw message