Non-Constructor Methods Should Not Have The Same Name As The Enclosing Class

< 1 min read

Impact Area

Manageability

Severity

Medium

Affected Element

Apex Class

Rule ID #

SF-0030

Impact #

Non-constructor methods with the same name as the enclosing class can be confused with constructors.

Remediation #

Rename methods to comply with this convention.

Time to fix #

30 min

Updated on March 21, 2025
Was it helpful ?