ImmutableMap Does Not Allow null
An explanation of Guava ImmutableMap's null restrictions and the tradeoffs of alternative immutable map wrappers.
7 posts, newest first.
An explanation of Guava ImmutableMap's null restrictions and the tradeoffs of alternative immutable map wrappers.
Notes on Java hashCode, its relationship with equals, and how collections use hash values.
A diagnostic guide to Java enum switch labels, constant-expression requirements, and comparator contract violations.
An IntelliJ IDEA troubleshooting reference for indexing, Maven variables, Lombok, framework support, imports, and serialVersionUID.
A Maven reference for coordinates, settings files, profile precedence, repository selection, and Aliyun mirror configuration.
Reproducible Java examples that expose ArrayList and HashMap failures when multiple threads modify them concurrently.
A Java language notebook covering static initialization, inner classes, enums, object construction, and related runtime behavior.