Skip to content

Files

Latest commit

 

History

History
19 lines (12 loc) · 459 Bytes

CloneableWithoutClone.md

File metadata and controls

19 lines (12 loc) · 459 Bytes

Pattern: Cloneable without clone()

Issue: -

Description

Checks for classes that implement the java.lang.Cloneable interface without implementing the clone() method.

Here is an example of code that produces a violation:

class BadClass implements Cloneable {
    def someMethod()
}

Further Reading