[
https://issues.apache.org/jira/browse/LUCENE-4520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13488119#comment-13488119
]
Robert Muir commented on LUCENE-4520:
-------------------------------------
At some point Steve had cleaned up the useless declared exceptions that weren't
actually thrown... I guess this one slipped in since them.
> ValueSource.getSortField shouldn't throw IOException
> ----------------------------------------------------
>
> Key: LUCENE-4520
> URL: https://issues.apache.org/jira/browse/LUCENE-4520
> Project: Lucene - Core
> Issue Type: Improvement
> Components: core/search
> Reporter: Alan Woodward
> Priority: Minor
> Fix For: 4.1, 5.0
>
> Attachments: LUCENE-4520.patch
>
>
> ValueSource.getSortField just returns a new ValueSourceSortField, whose
> constructor doesn't declare any checked exceptions. So adding the throws
> clause to the method declaration means adding pointless try-catch warts to
> client code.
--
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: [email protected]
For additional commands, e-mail: [email protected]