1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-16 18:10:13 +08:00

[docs fix]修正错别字

This commit is contained in:
Slade 2025-04-06 20:13:28 +08:00 committed by GitHub
parent f63f39f068
commit 6042bc3286
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -475,8 +475,8 @@ synchronized static void method() {
对括号里指定的对象/类加锁:
- `synchronized(object)` 表示进入同步代码前要获得 **给定对象的锁**
- `synchronized(类.class)` 表示进入同步代码前要获得 **给定 Class 的锁**
- `synchronized(object)` 表示进入同步代码前要获得 **给定对象的锁**
- `synchronized(类.class)` 表示进入同步代码前要获得 **给定 Class 的锁**
```java
synchronized(this) {