File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ head:
204204 }
205205
206206 // anyOpt の内容”の有無”にのみ依存した値を返す
207- anyOpt. map(_ - > " foo" ). orElseGet(() - > " bar" );
207+ anyOpt. map(_ - > " foo" ). orElseGet(() - > " bar" );
208208
209209 // パターンマッチングの利用しない変数
210210 switch (obj) {
@@ -1404,7 +1404,7 @@ head:
14041404- 日付や時刻の扱いは`java.time`パッケージのAPIを標準とする
14051405 `java.util.Date`や`java.text.SimpleDateFormat`といった古いAPIは、スレッドセーフではなく、設計上の問題も多いため、**原則として使用を禁止**します。
14061406
1407- - 適切な日時クラスを選択する
1407+ - 適切な日時クラスを選択する
14081408
14091409 | 利用シーン | クラス |
14101410 | ----------------------------------------------------------------- | ------------------------------------------------------------------------ |
@@ -1417,7 +1417,7 @@ head:
14171417 | 特定の日付や時刻に依存しない期間(日付ベース)<br> 例: 1年2ヶ月3日 | `Period` |
14181418 | タイムゾーン | 常に `ZoneId` を使用<br> `"Asia/Tokyo"`のような地域名で指定することを推奨 |
14191419
1420- - 現在の日時を取得する際は、常に`Clock`クラスを依存性注入(DI)して使用することを推奨する
1420+ - 現在の日時を取得する際は、常に`Clock`クラスを依存性注入(DI)して使用することを推奨する
14211421
14221422 良い例:
14231423
You can’t perform that action at this time.
0 commit comments