Refactoring: Introduce Field
From: [JetBrains]The book has now been published and the content of this chapter has likely changed substanstially.
The same expression occurs in several methods of a class.
Create a new field that contains the contents of an existing expression and replace all uses of the expression with the field.
The Introduce Field refactoring declares a new field and initializes it with the selected expression. The original expression is replaced with the usage of the field.
Copyright © 2003-2008 Gerard Meszaros all rights reserved