Refactor -> Push Members Down issue (#9779) Permanently deleted user 创建于 2009年04月02日 11:53 When I use pushing down method, that uses private fields, IDEA does not replace them with getters/setters, even if they are available. Also, no warning is given.Is it intended behaviour?
Surely not. IDEA should show a warning. Please file a JIRA issue, I'll vote
for it (like for other refactoring bugs).
Tom
Here it is: http://www.jetbrains.net/jira/browse/IDEA-22511
This issue also applies to private methods.
How about offering to encapsulate private fields or use existing accessors?