Replace direct field access by setter and getter
已回答
I want to move a non static method into another class. To make the code working the fields must be accessed by setter/getter instead of directly using them. Is there a possibility to do the replacment using IDEAs "structural replacement"?
Original class:
Desired result after replacement:
请先登录再写评论。
Refactor.Encapsulate Fields
Alain
"There isn't anything that IDEA can't do."
Thank you.
Andre
Wow, I'm impressed too!