0
belief driven design · 2mo · discuss
Caching something per class is one of the most ordinary things many libraries do. And a Class<?> looks like the perfect map key: there’s exactly one instance per class per loader, its identity hash is stable, and equals is identity comparison.