Inspectopedia Help

Unsafe return statements visitor

Reports unsafe use of JavaRecursiveElementVisitor.visitReturnStatement().

Processing PsiReturnStatements even if they belong to another PsiClass or PsiLambdaExpression is a bug in most cases, and a visitor most probably should implement visitClass() and visitLambdaExpression() methods.

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Plugin DevKit, 233.SNAPSHOT

Last modified: 13 July 2023