Branch: refs/heads/main
  Home:   https://github.com/pmd/pmd
  Commit: c33f1e5b60576cdcf9fa24fdcce9277969235ae0
      https://github.com/pmd/pmd/commit/c33f1e5b60576cdcf9fa24fdcce9277969235ae0
  Author: Andreas Dangel <[email protected]>
  Date:   2026-05-19 (Tue, 19 May 2026)

  Changed paths:
    M pmd-java/src/main/resources/category/java/multithreading.xml

  Log Message:
  -----------
  [java] AvoidSynchronizedStatement: Improve rule doc

Refs https://github.com/pmd/pmd/pull/5175#issuecomment-4150557437

While it's not wrong to put "lock.lock()" inside the try, the best
practice documented in 
https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/locks/ReentrantLock.html
puts it directly before the try.

Also added an explicit example of tryLock() usage.


  Commit: 3499944442549c096f871afe97ab5d0529859042
      https://github.com/pmd/pmd/commit/3499944442549c096f871afe97ab5d0529859042
  Author: Andreas Dangel <[email protected]>
  Date:   2026-05-19 (Tue, 19 May 2026)

  Changed paths:
    M pmd-java/src/main/resources/category/java/multithreading.xml

  Log Message:
  -----------
  Apply suggestions from review, update AvoidSynchronizedAtMethodLevel


  Commit: d1bbf1c5b6c6ca921e84def795193179bb062edf
      https://github.com/pmd/pmd/commit/d1bbf1c5b6c6ca921e84def795193179bb062edf
  Author: Sören Glimm <[email protected]>
  Date:   2026-05-21 (Thu, 21 May 2026)

  Changed paths:
    M pmd-java/src/main/resources/category/java/multithreading.xml

  Log Message:
  -----------
  [java] AvoidSynchronizedStatement: Improve rule doc (#6657)


Compare: https://github.com/pmd/pmd/compare/caef90068a8e...d1bbf1c5b6c6

To unsubscribe from these emails, change your notification settings at 
https://github.com/pmd/pmd/settings/notifications


_______________________________________________
Pmd-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmd-commits

Reply via email to