☕ Null case in switch
Handle null directly as a switch case — no separate guard needed.
Guard Before Switch → case null (JDK 21+)
🔗 https://t.co/TcQndtXOhs
#Java#JavaEvolved
☕ Unmodifiable collectors
Collect directly to an unmodifiable list with stream.toList().
collectingAndThen → stream.toList() (JDK 16+)
🔗 https://t.co/TFzqYxelL3
#Java#JavaEvolved
☕ Path.of() factory
Use Path.of() — the modern factory method on the Path interface.
Paths.get() → Path.of() (JDK 11+)
🔗 https://t.co/jBnqyIgELv
#Java#JavaEvolved
☕ Optional.orElseThrow() without supplier
Use Optional.orElseThrow() as a clearer, intent-revealing alternative to get().
get() or orElseThrow(supplier) → orElseThrow() (JDK 10+)
🔗 https://t.co/8pK34mT2Rn
#Java#JavaEvolved
☕ Duration and Period
Calculate time differences with type-safe Duration and Period.
Millisecond Math → Duration / Period (JDK 8+)
🔗 https://t.co/g5EnaaVQLp
#Java#JavaEvolved
☕ Stream.mapMulti()
Emit zero or more elements per input without creating intermediate streams.
flatMap + List → mapMulti() (JDK 16+)
🔗 https://t.co/RW1YP1vPg7
#Java#JavaEvolved
☕ Modern HTTP client
Use the built-in HttpClient for clean, modern HTTP requests.
HttpURLConnection → HttpClient (JDK 11+)
🔗 https://t.co/r7Nv3qIVdN
#Java#JavaEvolved
☕ Spring Framework 7 API Versioning
Replace duplicated version-prefixed controllers with Spring Framework 7's native API ver…
Manual URL Path Versioning → Native API Versioning (JDK 17+)
🔗 https://t.co/e5rXtDfnkJ
#Java#JavaEvolved
Started 7 @GitHubCopilot Cloud Coding Agents in parallel, all by simply assigning them to Copilot.
The @javaevolved project has been adjusted to welcome PRs in parallel with near zero conflicts.
https://t.co/XyKH19SeyS
Introducing the @javaevolved Agent Plugin.
It detects your project's real Java target, then keeps AI guidance within the final features and APIs that version supports.
#Copilot#Claude#Codex
https://t.co/bEx5xuJYWx
☕ String.lines() for line splitting
Use String.lines() to split text into a stream of lines without regex overhead.
split("\\n") → lines() (JDK 11+)
🔗 https://t.co/HW1yTIg0Mu
#Java#JavaEvolved