Companion Products for IntelliJ® IDEA

IntelliJ IDEA Companions Frequently-asked Questions Info for Software Vendors

Refactor-J 2.0: Making the best refactoring tool in existence even better

Refactor-J extends IntelliJ IDEA's industry-leading refactoring capabilities in new and more powerful directions. With twenty never-before automated refactorings, Refactor-J allows you even more control and direct the design of your code.

Using Refactor-J, you can easily split your class structures into managable pieces, alter the inputs and outputs to your methods, tame your loops, and cleanly genericize your algorithms.

Design decisions about your Java code become cheap and easy to change or undo. With Refactor-J and IntelliJ IDEA, you can truly refactor Java with pleasure.

Requirements: Refactor-J plugin works only with IntelliJ IDEA 5.0 or newer.

Refactorings provided by Refactor-J include:
  • Extract Class
  • Introduce Parameter Object
  • Wrap Return Value
  • Invert Boolean
  • Remove Middleman
  • Introduce Type Parameter
  • Remove Type Parameter
  • Split Loop
  • Merge Loops
  • Make class inner
  • Weaken type
  • Add property
  • Remove property
  • Push Javadoc down
  • Pull Javadoc up
  • Push annotation down
  • Pull annotation up
  • Create array accessor methods
  • Create collection accessor methods
  • Convert disjunction to table-driven logic

Key Features of Refactor-J:

Refactor-J fully supports all of the new JDK 1.5 code constructs. Using the Introduce Type Parameter and Remove Type Parameter refactorings, you can easily augment code designed before JDK 1.5 to more modern styles of parameterized types and generic programming.

All of the refactorings in Refactor-J work in JSP and JSPX files, as well as Java classes. This makes Refactor-J a powerful tool for building consistent and high quality web applications.

some description of the image Fig 1. Introduce parameter object (before).
some description of the image Fig 2. Introduce parameter object (after).

You can optionally preview all of the modifications to be performed by a refactoring and choose which of those changes will be applied, using the familiar IDEA preview panel. This gives you precise control of every modification made your code.

Refactor-J integrates seamlessly with many popular version control systems, including CVS, Subversion, and Perforce. This allows changes to be easily applied to large multi-developer projects.

some description of the image Fig 3. Split loop (before).
some description of the image Fig 4. Split loop (after).

Comments? Write to

© 2000-2008 JetBrains. All rights reserved.