IntelliJ IDEA 2016.1 Help

Inline Method

Refactor | Inline

Inline Method refactoring results in placing method's body into the body of its caller(s). You can opt to:

  • inline all occurrences of the method, and delete the method
  • inline only a single occurrence, and retain the method

Inline all invocations and remove the methodSelect this radio button to replace all the method calls with its code and remove the method.
Inline this invocation only and keep the methodUse this option to replace only the current method call.
Search in comments and stringsSelect this check box to display the usages of methods in comments and strings in the Refactoring Preview tool window.
Search for text occurrencesCheck this option to apply the changes to non-java files (such as documentation, HTML, JSP and other files included in the project).

See Also


Last modified: 13 July 2016