Search code examples
javarefactoringautomated-refactoring

Any tool can help refactor field into get/set pairs of method


Wondering if there is tool to assist this kind of refactoring.


Solution

  • Eclipse is an awesome IDE! right click, go to Source, "Generate Getters and Setters..."

    ... or...

    enter image description here


    In Netbeans... right click, go to Refactor, "Encapsulate Fields"