Generify Refactoring Specification
Author:
Jan Becicka CVS history
The Generify refactoring is designed to transform existing code which does not use Generics into the Generics-aware code.
The refactoring analyzes existing code and each raw type replaces with suitable parameterized type.
Implementation of this refactoring is tracked in
issue 56726.
Pre-Conditions
- Resource(es), folder(s) or project is selected.
Pre-Checks
Parameters
- Drop obsolete casts
- Leave types parameterized with Object raw
Fast Parameters Check
Parameters Check
Changes To Be Made
- Each raw type is replaced by suitable parameterized type if applicable
- Type casts are removed if this option is selected
- Object-parameterized types will not replace raw types if this option is selected
Checks During Changes Preparation
No specific checks.
Refactoring UI
Menu item:
Generify...
Action title:
Generify - org.test
--------------------------------------------
| Package org.test |
| |
| [ ] Drop Obsolete Casts |
| [ ] Leave Object-parameterized types raw |
| |
--------------------------------------------