You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Ryan McKinley (Resolved) (JIRA)" <ji...@apache.org> on 2012/03/28 23:15:29 UTC
[jira] [Resolved] (LUCENE-3933) Cloneable classes can use their
class in the clone() function
[ https://issues.apache.org/jira/browse/LUCENE-3933?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ryan McKinley resolved LUCENE-3933.
-----------------------------------
Resolution: Duplicate
Lucene Fields: (was: Patch Available)
> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org