alibaba / p3c

Alibaba Java Coding Guidelines pmd implements and IDE plugin
https://github.com/alibaba/p3c/wiki
Apache License 2.0
30.41k stars 8.06k forks source link

LockShouldWithTryFinallyRule规则不生效 #991

Open wuwen5 opened 8 months ago

wuwen5 commented 8 months ago

Describe the bug 在idea-plugin和sonar中均未生效,没有按预期检查出违反规则的代码

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots idea中 image

sonar中 image

image

Desktop (please complete the following information):

Additional context Add any other context about the problem here.