Avoid Non Existent Annotations

< 1 min read

Impact area

Scalability

Severity

Medium

Affected element

Apex Class

Rule ID #

SF-COGN-COMPLEX

Impact #

Apex supported non-existent annotations for legacy reasons. In the future, such non-existent annotations could result in broken apex code that will not compile. 

Remediation

Replace legacy annotations with newer ones.

Time to fix #

20 min

References #

This rule is linked to AvoidNonExistentAnnotations

Updated on March 21, 2025
Was it helpful ?