[java] DontCallThreadRun can't detect the case that call run() in foo.bar.run() #2538
Labels
a:false-negative
PMD doesn't flag a problematic piece of code
Milestone
Affects PMD Version:
6.22.0
Rule:
DontCallThreadRun
Description:
DontCallThreadRun can't detect the case that call
run()
infoo.bar.run()
. This rule is implemented through xpath search: This rule is implemented through xpath search:AST analyse result of the code sample:
Possible error when detecting whether the type of
client.blink
isjava.lang.Thread
Code Sample demonstrating the issue:
Expected outcome:
false-negative
Running PMD through:
CLI
The text was updated successfully, but these errors were encountered: