Inspectopedia
 
2024.3

Copy constructor misses field

Warning
New
Last modified: 03 December 2024

Reports copy constructors that don't copy all the fields of the class.

final fields with initializers and transient fields are considered unnecessary to copy.

Example:

New in 2018.1