Inspectopedia
 
2024.3

Clashing trait methods

Warning
Reliability
New
Last modified: 03 December 2024

Reports classes which implement two or more traits that contain methods with same signatures.

The result of calling such methods might be unexpected.

The quick-fix adds an explicit overriding method.

Example:

After the quick-fix is applied: