~/talk

The record: migrate to immutability

Talkat Voxxed Days Amsterdam 2026 Β· 2026-04-01..04-02Β· [java]
slides:none on file

Java records replace many POJOs by providing a canonical constructor, equals/hashCode/toString for free and records are shallowly immutable so mutable fields (like ArrayList) still allow mutation unless you defend them. Use defensive constructors, fail-fast checks, or wrap collections with copyOf is free after the first copy to get true immutability and avoid hidden bugs. Migration tools: IntelliJ hints and OpenRewrite Lombok Value to Records recipe convert code; JEP‑468 with generated withers is still pending.

AI-written summary Β· about

  1. 0:00Introduction to records
  2. 0:51Using Java records
  3. 4:18Handling record immutability
  4. 8:09Copying and transforming data
  5. 11:34Migration strategies
  6. 13:34Conclusion and resources
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark β€” the status bar button does the same
← β†’
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter β€” or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.