Skip to content

Commit 89d7ebe

Browse files
authored
修复显示问题
> 3.2.4 1. **适用范围(资源的定义):** 任何实现 `java.lang.AutoCloseable`或者 `java.io.Closeable` 的对象
1 parent dc20d8f commit 89d7ebe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/java/basis/Java基础知识.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1240,7 +1240,7 @@ public class Test {
12401240
12411241
#### 3.2.4. 使用 `try-with-resources` 来代替`try-catch-finally`
12421242
1243-
1. **适用范围(资源的定义):** 任何实现 `java.lang.AutoCloseable`或者``java.io.Closeable` 的对象
1243+
1. **适用范围(资源的定义):** 任何实现 `java.lang.AutoCloseable`或者 `java.io.Closeable` 的对象
12441244
2. **关闭资源和 final 的执行顺序:** 在 `try-with-resources` 语句中,任何 catchfinally 块在声明的资源关闭后运行
12451245
12461246
Effecitve Java》中明确指出:

0 commit comments

Comments
 (0)