r/java • u/TomKavees • Dec 26 '25
Which lesser known libraries saved your butt this year?
It's holiday time, the sub is pretty dead, so let's stir the pot a little bit.
Most of this sub is probably well acquanted with likes of AssertJ, Guava, Vavr, Jackson, or JSpecify - we use them, we love them, but the ecosystem has more to offer.
Post lesser known Java libraries or tools that you rave about, are interesting, useful, or have saved your butt this year. Self promotion within reason is okay
207
Upvotes
View all comments
102
u/TomKavees Dec 26 '25
I'll start:
assertThat( actual ).asInstanceOf(JsonAssertions.JSON).isEqualTo( "{...}" );. Not a rocket surgery, but makes testing suck lessStringly (e.g. location code vs location name) andlongly typed (e.g. customer id vs order id vs location id), the use of custom value-based classes to leverage the compiler to do basic sanity checking has saved my butt over the last decade more times than i am willing to admit. Having a convenient point to do data normalization is also a plusmvn -T2.0C ...achieved a speedup of ~43%, andmvnd ...achieved a speedup of ~55% over single-threaded build. It ain't magic though, single module builds see little speedup.What are yours?