Re:Java's Original Sin (2009)
by willvarfar on Monday July 15, 2019 @03:42AM
(#20438875)
Yeap.
I can think of two main uses for Integer: when you have type polymorphism (e.g. my own code often has maps of Object) or nullness.
I go on to describe a different approach to nullness that suites ints, for example.
The author isn’t suggesting that this would be a design change that would be compatible with the current semantics of Java, so behaviour for null would change.