IntelliJ IDEA 14.0.0 Web Help

Make Static Dialogs

Refactor | Make Static

Use this refactoring to convert an inner class or an instance method into a static one.

Make Class Static dialog

Item Description
Replace instance qualifiers with class references Specify whether you want to replace instance qualifiers with class references or not.

Make Method Static dialog

Item Description
Add object as a parameter with name Select this check box, if you want to pass the whole referenced object as a parameter to the method, then specify the name for the parameter in the field below.
Add parameters for fields: Select this check box to pass the referenced fields/variables as parameters to the method, then select the appropriate fields in the list.
Move Up/Move Down Use this buttons to reorder parameters in the list.
Replace instance qualifiers with class references Specify whether you want to replace instance qualifiers with class references or not.

This check box is available, if the method does not contain any references to fields or instance variables.

See Also

Last modified: 4 December 2014
comments powered by Disqus