The Global Modifier Should Be Avoided

< 1 min read

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

Updated on March 21, 2025
Was it helpful ?