Inspectopedia Help

Infinite recursion

Reports methods which must either recurse infinitely or throw an exception. Methods reported by this inspection could not be finished correct.

Example:

// this function always dive deeper def fibonacci(int n) { return fibonacci(n-1) + fibonacci(n-2) }

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Groovy, 233.SNAPSHOT

Last modified: 13 July 2023