| Copied this from the video description: JEP 395: Records: https://openjdk.org/jeps/395 JEP 440: Record Patterns: https://openjdk.org/jeps/440 JEP 394: Pattern Matching for Instanceof: https://openjdk.org/jeps/394 JEP 441: Pattern Matching for Switch: https://openjdk.org/jeps/441 JEP 409: Sealed Classes: https://openjdk.org/jeps/409 JEP 361: Switch Expressions: https://openjdk.org/jeps/361 JEP 456: Unnamed Variables & Patterns: https://openjdk.org/jeps/456 JEP 507: Primitive Types in Patterns, instanceof and switch (Third Preview): https://openjdk.org/jeps/507 JEP 512: Compact Source Files and Instance Main Methods: https://openjdk.org/jeps/512 JEP 458: Launch Multi-File Source-Code Programs: https://openjdk.org/jeps/458 JEP 511: Module Import Declarations: https://openjdk.org/jeps/511 JEP 502: Stable Values (Preview): https://openjdk.org/jeps/502 JEP 513: Flexible Constructor Bodies: https://openjdk.org/jeps/513 |
> try (var ignored = CloseableThreadContext.put(…)) {
to
> try (var _ = CloseableThreadContext.put(…)) {