[
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: [email protected]
For additional commands, e-mail: [email protected]