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] Updated: (LUCENE-1855) Change AttributeSource API to use generics
Date Sun, 30 Aug 2009 15:25:32 GMT

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

Uwe Schindler updated LUCENE-1855:
----------------------------------

    Attachment: LUCENE-1855.patch

Here is the patch that implements generics for the Attributes API. The test shows, how simple
now usage of addAttribute() and so on is (no casts needed anymore).

The code compiles without any unchecked warnings. To test this, I enabled the warnings about
unchecked operations globally (emitting about 350 warnings on whole lucene). Two places inside
private code needs to add @SuppressWarnings, because the compiler does not know if one AttributeImpl
really implements the questioned interface.

> 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