lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan McKinley (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LUCENE-3933) Cloneable classes can use their class in the clone() function
Date Wed, 28 Mar 2012 20:21:26 GMT
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


Mime
View raw message