Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bfc7ad1

Browse files
再补个句号
1 parent 942ac85 commit bfc7ad1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎docs/java/new-features/java12-13.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Java12 为默认的垃圾收集器 G1 带来了两项更新:
105105

106106
#### 增强 Switch
107107

108-
传统的 `switch` 语法存在容易漏写 `break` 的问题,而且从代码整洁性层面来看,多个 break 本质也是一种重复
108+
传统的 `switch` 语法存在容易漏写 `break` 的问题,而且从代码整洁性层面来看,多个 break 本质也是一种重复
109109

110110
Java12 增强了 `switch` 表达式,使用类似 lambda 语法条件匹配成功后的执行块,不需要多写 break 。
111111

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /