Inspectopedia
 
2024.3

Nested method call

Warning
New
Last modified: 03 December 2024

Reports method calls used as parameters to another method call.

The quick-fix introduces a variable to make the code simpler and easier to debug.

Example:

After the quick-fix is applied:

Use the inspection options to toggle the reporting of:

  • method calls in field initializers

  • calls to static methods

  • calls to simple getters