Skip to content

Commit

Permalink
Update concepts/switch-statement/about.md
Browse files Browse the repository at this point in the history
Co-authored-by: Kah Goh <[email protected]>
  • Loading branch information
josealonso and kahgoh authored Jan 3, 2025
1 parent ea2b915 commit f08d614
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion concepts/switch-statement/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ Starting with Java 14 (available as a preview before in Java 12 and 13) it is po
However if you use the new `->` notation it must be followed by either: a single statement/expression, a `throw` statement or a `{}` block.
No more confusion!

The first LTS (Long Term Support) version that had these improvements was Java 17, released on September, 2021.

Check failure on line 148 in concepts/switch-statement/about.md

View workflow job for this annotation

GitHub Actions / Lint Markdown files

Multiple consecutive blank lines

concepts/switch-statement/about.md:148 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2] https://github.com/DavidAnson/markdownlint/blob/v0.37.2/doc/md012.md
In addition, a feature called `Guarded Patterns` was added, which allows you to do checks in the case label itself.

Expand Down

0 comments on commit f08d614

Please sign in to comment.