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?

2 comments
Comment actions Permalink

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
Comment actions Permalink
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.