Avoid Using “while” Statements Without Using Braces To Surround The Code Block

< 1 min read

Impact area

Manageability

Severity

Medium

Affected element

Apex Class

Rule ID #

SF-0004

Impact #

Not using braces is error prone and complicates debugging.

Remediation #

Use braces to surround all code blocks.

Time to fix #

15 min

Updated on March 21, 2025
Was it helpful ?