O'Reilly logo
  • Shayne Riley thinks this is interesting:

Several classes in the Java platform libraries violate the advice that public classes should not expose fields directly. Prominent examples include the Point and Dimension classes in the java.awt package. Rather than examples to be emulated, these classes should be regarded as cautionary tales.


Cover of Effective Java™


Hey, I remember point! Yeah, boo.