Several classes in the Java platform libraries violate the advice that public classes should not expose fields directly. Prominent examples include the
Dimension classes in the
java.awt package. Rather than examples to be emulated, these classes should be regarded as cautionary tales.
Hey, I remember point! Yeah, boo.
Share this highlighthttp://www.safaribooksonline.com/a/effective-java/111068/