Skip to content

Files

Latest commit

 

History

History
18 lines (11 loc) · 532 Bytes

NoClone.md

File metadata and controls

18 lines (11 loc) · 532 Bytes

Pattern: Use of clone() method

Issue: -

Description

The clone method is difficult to get right. You can use the copy constructor of case classes rather than implementing clone.

Example configuration

<check enabled="true" class="org.scalastyle.scalariform.NoCloneChecker" level="warning"/>