-
Notifications
You must be signed in to change notification settings - Fork 38
Support for Java 21 #242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Support for Java 21 #242
Conversation
yknz
commented
Aug 7, 2025
- シールクラス(Sealed Classes)
- JavaDocのコードスニペット({@snippet})
- レコードパターン
- 順序を保持するコレクション(Sequenced Collections)
- switch文・式でのパターンマッチング
|
Co-authored-by: ota-meshi <[email protected]>
- @snippetのサンプルコードを追加 - シールクラスの記述をブラッシュアップ - レコードパターンの記載を校正 - switchのパターンマッチングのコードサンプルでNullPointerExceptionが出てしまう場合を考慮 - switch文のコード例でインデント不正を修正
ea3214a
to
c9ec648
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -1002,6 +1026,8 @@ head: | |||
(o instanceof Collection && ((Collection)o).isEmpty()); | |||
``` | |||
|
|||
- パターンマッチングについては[switch文・式で使用する](#switchでのパターンマッチング)ことも可能。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
この文が追加されていますが、ここはインスタンスについてのセクションなので不要だと思います。
|
||
## シールクラス | ||
|
||
- 明確な方針で、利用する・利用しないを統一すること |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
シールクラスの利用については明確な方針で統一すること
のほうが文章としてわかりやすいと思います。