New Java 5 clone() inspection?

I think it would be a nice idea to have an inspection that fires for language
level 5.0 if Foo.clone() has a return type other than Foo.
There is covariance so we should make use of it to prevent unnecessary casts.

What do you think?

2 comments
Comment actions Permalink

Good one. Please create a JIRA item.

--Dave Griffith

0

Please sign in to leave a comment.