Affects PMD Version:
6.2.0
Rule:
category/java/errorprone.xml/CloneMethodMustImplementCloneable
Description:
The code below did not trigger this rule before PMD 6.2.0.
The clone()
method is defined in the interface so the return value is of type Foo
instead of Object
.
Code Sample demonstrating the issue:
public interface Foo extends Serializable, Cloneable { Foo clone() throws CloneNotSupportedException; }
Running PMD through: Gradle
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