問題タブ [feature-envy]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
ruby - 私のコードで Eclipse が「Feature envy」の臭いについて文句を言うのはなぜですか?
Eclipse (RedRails)は、次のコードで「 Feature envy 」について不満を述べています。
私の理解では、この警告は無視しても問題ありません。しかし、この警告が生成される理由をさまよっています。$1.size
とのメソッドを抽出する方法がわかりません$1
。
java - How to fix a feature-envy of project based on Java?
After I used "inFusion Hydrogen" to analyze my project, it's pretty easy to figure out myQuestionFun() is causing feature-envy.
The question is, what's the best way to fix it? Because myQuestionFun() is a function of the abstract method of the parent class, I can't move it.