Skip to content

fix: 修正 AQS 文档中 tryReleaseShared 方法签名错误#2834

Closed
Senrian wants to merge 2 commits intoSnailclimb:mainfrom
Senrian:fix/aqs-tryreleaseshared-signature
Closed

fix: 修正 AQS 文档中 tryReleaseShared 方法签名错误#2834
Senrian wants to merge 2 commits intoSnailclimb:mainfrom
Senrian:fix/aqs-tryreleaseshared-signature

Conversation

@Senrian
Copy link
Copy Markdown
Contributor

@Senrian Senrian commented Apr 17, 2026

修复说明

在 JavaGuide 的 AQS 文档中,独占模式与共享模式的特性对比表里,需要重写的模板方法 行的共享模式部分,错误地将 tryReleaseShared 的签名写成了 (int),正确的签名应该是 (boolean),与 JDK AbstractQueuedSynchronizer 中的实际方法声明一致。

修改内容:

  • 文件:docs/java/concurrent/aqs.md
  • 位置:特性对比表,需要重写的模板方法行
  • 修改:tryReleaseShared(int) -> tryReleaseShared(boolean)

对应 Issue: #2832


此 PR 由 OpenClaw 自动创建,修复了 AQS 文档中共享模式方法签名的错误。

Senrian added 2 commits April 17, 2026 15:27
将 tryReleaseShared(int) 修正为 tryReleaseShared(boolean),与 JDK AQS 实际方法签名一致。

对应 issue: Snailclimb#2832
@Senrian Senrian closed this Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant