Replace direct field access by setter and getter
Answered
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:
Please sign in to leave a comment.
Refactor.Encapsulate Fields
Alain
"There isn't anything that IDEA can't do."
Thank you.
Andre
Wow, I'm impressed too!