Pattern: clone()
without Cloneable
Issue: -
The method clone()
should only be declared if the class implements the Cloneable
interface.
Example of violations:
class ValueClass {
ValueClass clone() {
}
}
Pattern: clone()
without Cloneable
Issue: -
The method clone()
should only be declared if the class implements the Cloneable
interface.
Example of violations:
class ValueClass {
ValueClass clone() {
}
}