Changes between Version 2 and Version 3 of RefactoringSteps/DuplicateCodeElimination
- Timestamp:
- Mar 11, 2015, 10:53:29 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RefactoringSteps/DuplicateCodeElimination
v2 v3 1 1 = Duplicate Code Elimination = 2 2 3 The “ Duplicate Code Elimination” transformation eliminates a duplicate code group. This transformation needs a duplicate code group found with the filtered_suffix_tree algorithm, with max_invalid_seq length parameter set to 0. More information about duplicate code analysis can be found at CloneIdentifierl. If the members of the group are found in different modules the transformation asks the user to enter a module name where the extracted function should be placed, and exported. Every occurrence of the group will be replaced with a function call to the extracted function. The transformation asks the user to enter the extracted function's name.3 The “ Duplicate Code Elimination” transformation eliminates a duplicate code group. This transformation needs a duplicate code group found with the filtered_suffix_tree algorithm, with max_invalid_seq length parameter set to 0. More information about duplicate code analysis can be found at [http://pnyf.inf.elte.hu/trac/refactorerl/wiki/CloneIdentifiErl here]. If the members of the group are found in different modules the transformation asks the user to enter a module name where the extracted function should be placed, and exported. Every occurrence of the group will be replaced with a function call to the extracted function. The transformation asks the user to enter the extracted function's name. 4 4 5 5