A simple example of the temporary field code smell
13/12/2025
Introduction. Temporary field is a code smell that occurs when a field is set only at certain times and is null or unused at other times, making the object harder to understand and maintain. This may indicate a deeper design issue. Often the issue is a missing abstraction with a...