The Global Modifier Should Be Avoided

Impact Area

Manageability

Severity

Medium

Affected Element

Apex Class

Rule ID #

SF-0032

Impact #

Global classes should be avoided (especially in managed packages) as they can never be deleted or changed in signature.

Remediation #

Always check twice if something needs to be global. Many interfaces (e.g. Batch) required global modifiers in the past but don’t require this anymore.

Time to fix #

45 min

Was it helpful ?

THE AI CODE GOVERNANCE BRIEF

Sign up for new updates!