---
title: The Global Modifier Should Be Avoided
description: "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…"
url: "https://community-staging.qualityclouds.com/qcdocs/qcr/rules/the-global-modifier-should-be-avoided/"
updated: "2025-03-21"
category: PMD Rules
---

# 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
