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




Last modified on Jun 10, 2020