Inspectopedia
 
2024.3

Redundant record constructor

Warning
New
Last modified: 03 December 2024

Reports redundant constructors declared inside Java records.

Example 1:

The quick-fix removes the redundant constructors.

Example 2:

The quick-fix converts this code into a compact constructor.

This inspection depends on the Java feature 'Records', which is available since Java 16.

New in 2020.1