Temporary Field

This smell occurs when an instance variable is set only in certain circumstances. It makes the code difficult to understand since the purpose of the variable is not clear enough.

Reference

M. Fowler, “Refactoring: Improving the Design of Existing Code”. Addison-Wesley, 1999.


Implementation Smells

Home

All rights reserved (c) Tushar Sharma 2017-23.