Refactor -> Push Members Down issue (#9779)

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?

0
2 comments
Avatar
Permanently deleted user

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

0
Avatar
Permanently deleted user
Please file a JIRA issue


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?

0

Please sign in to leave a comment.