FeaturesPluginsDocs & SupportCommunityPartners

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

  1. Resource(es), folder(s) or project is selected.

Pre-Checks

Parameters

  1. Drop obsolete casts
  2. Leave types parameterized with Object raw

Fast Parameters Check

Parameters Check

Changes To Be Made

  1. Each raw type is replaced by suitable parameterized type if applicable
  2. Type casts are removed if this option is selected
  3. 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 |
|                                          |
--------------------------------------------
Companion
Projects:
MySQL Database Server   Open JDK: an Open SourceJDK   GlassFish Community: an Open Source Application Server    Mobile & Embedded Community    Open Solaris   java.net - The Source for Java Technology Collaboration   Virtual Box - full virtualizer  Open ESB - The Open Enterprise Service Bus Powered by