[ https://issues.apache.org/jira/browse/LUCENE-4519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13490176#comment-13490176 ]
Uwe Schindler commented on LUCENE-4519: --------------------------------------- I agree with this, the wildcard is useless here and not really user-friendly. I think it was added to prevent some unchecked casts from different Field types, which can still be done, if the called methods have correct generics. I am not so happy with the FilterIterator change, but I agree that it is needed here, otherwise it gets unchecked casts in the predicate. > IndexDocument methods should not use wildcards in their return types > -------------------------------------------------------------------- > > Key: LUCENE-4519 > URL: https://issues.apache.org/jira/browse/LUCENE-4519 > Project: Lucene - Core > Issue Type: Task > Reporter: Adrien Grand > Assignee: Adrien Grand > Priority: Trivial > Attachments: LUCENE-4519.patch > > > {{public Iterable<? extends IndexableField> indexableFields()}} should be > replaced with {{public Iterable<IndexableField> indexableFields()}}. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org