[java] ReturnFromFinallyBlock: False positive on lambda expression in finally block #1035
Labels
a:bug
PMD crashes or fails to analyse a file.
a:false-positive
PMD flags a piece of code that is not problematic
good first issue
A great starting point for new contributors
in:xpath
Relating to xpath support at large, eg Jaxen / Saxon, custom functions, attribute resolution
Milestone
Affects PMD Version:
5.6.1
Rule:
ReturnFromFinallyBlock Priority:3 Avoid returning from a finally block
Description:
Code Sample demonstrating the issue:
Obviously, the code in the finally block does not return - PMD mistakes the
return
statement in the lambda expression as a return from the finally blockRunning PMD through: [Maven]
The text was updated successfully, but these errors were encountered: