Skip to content

Files

Latest commit

 

History

History
22 lines (12 loc) · 583 Bytes

ParameterAssignment.md

File metadata and controls

22 lines (12 loc) · 583 Bytes

Pattern: Use of parameter assignment

Issue: -

Description

Disallows assignment of parameters.

Rationale: Parameter assignment is often considered poor programming practice. Forcing developers to declare parameters as final is often onerous. Having a check ensure that parameters are never assigned would give the best of both worlds.

Examples

To configure the check:

<module name="ParameterAssignment"/>

Further Reading