[
https://issues.apache.org/jira/browse/LUCENE-3933?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13240698#comment-13240698
]
Robert Muir commented on LUCENE-3933:
-------------------------------------
This is a duplicate of LUCENE-2000
> Cloneable classes can use their class in the clone() function
> -------------------------------------------------------------
>
> Key: LUCENE-3933
> URL: https://issues.apache.org/jira/browse/LUCENE-3933
> Project: Lucene - Java
> Issue Type: Improvement
> Reporter: Ryan McKinley
> Assignee: Ryan McKinley
> Priority: Trivial
>
> Since Java5, we are allowed to use an explicit class when returning clone()
> It is nicer to use:
> {code:java}
> OpenBitSet copy = original.clone();
> {code}
> then
> {code:java}
> OpenBitSet copy = (OpenBitSet)original.clone();
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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]