jargon

Design patterns·The named ways it goes wrong

the method calls five getters on another object and one on itself, so it belongs on that other object.

Feature envy

Also calledfeature envy smell, envious method

A method more interested in another class's data than in its own, which is a signal that it is on the wrong class. Moving it puts the behaviour with the data it operates on, which usually lets several of those getters become private. It is the smell that tell-don't-ask is a rule about, and it is the easiest one to spot mechanically.

Commonly confused with