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]