IntelliJ IDEA
 
Get IntelliJ IDEA
You are viewing the documentation for an earlier version of IntelliJ IDEA.

Use the Push ITDs in refactoringUltimate

Last modified: 28 June 2021

For aspects, IntelliJ IDEA supports most of the basic refactorings such as Move and Rename. In addition to that, you can also perform the Push ITDs In refactoring for inter-type declarations.

The Push ITDs In refactoring lets you move the definitions of fields and methods from aspects to corresponding classes. (The ITDs in the refactoring name stands for Inter-Type Declarations .)

The refactoring may be performed for an individual field or method, for an aspect as a whole, or for all aspects in a package.

If when performing the refactoring certain aspects become "empty" (this may be the case when the corresponding aspects contain nothing but inter-type declarations), you can select to automatically delete all such aspects.