Tutorial Refactoring & Audit
The main goal of this lab is to apply high level transformations on concrete java code examples. The exercises consist in 3 steps :
- determine the expected output given the sample input files;
- implement the
refactor
method so that it generates the expected output; - either make the method cover all possible cases, or identify (by commenting the method) the cases not covered;
The semantic for each refactoring is described shortly in the class comments.
This refactoring renames locals methods declarations using camel case specification and impacts local method invocations.
Implement the refactor
method from the class ̀fr.echoeslabs.tuto.jdt.refactoring.MethodInvocationCamelCaseRefactoring
.
This refactoring reorders the case blocks within switches in lexicographic order.
Implement the refactor
method from the class ̀fr.echoeslabs.tuto.jdt.refactoring.SwitchOrderingRefactoring
.