---
title: Avoid Classes With Too Many Fields
description: "Impact Area Scalability Severity Medium Affected Element Apex Class Rule ID **SF-0014** ## Impact Classes that have too many fields can become unwieldy and hard to maintain. ## Remediation Refactor your classes to reduce the number of fields in each…"
url: "https://community-staging.qualityclouds.com/qcdocs/qcr/rules/avoid-classes-with-too-many-fields/"
updated: "2025-03-21"
category: PMD Rules
---

# Avoid Classes With Too Many Fields

Impact Area

Scalability

           Severity

Medium

           Affected Element

Apex Class

Rule ID

**SF-0014**

## Impact

Classes that have too many fields can become unwieldy and hard to maintain.

## Remediation

Refactor your classes to reduce the number of fields in each one of them.

### Time to fix

45 min
