A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/3112 below:

[java] Deprecate rule CloneThrowsCloneNotSupportedException · Issue #3112 · pmd/pmd · GitHub

CloneThrowsCloneNotSupportedException

From #3104

I'm not sure CloneThrowsCloneNotSupportedException is useful, as calling super.clone() already forces you to declare the exception or handle it... why does it exist?

Don't know - that's a very old rule. Object.clone() throws this checked Exception, but you don't need to declare that when you override the clone method. You might need to catch it though when calling super.clone(). Maybe a candidate for retirement?

linusjflinusjflinusjflinusjflinusjf


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4