lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-3933) Cloneable classes can use their class in the clone() function
Date Wed, 28 Mar 2012 20:29:27 GMT

    [ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message