Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Tue, 30 Aug 2011 11:05:15 -0500 Date: Tue, 30 Aug 2011 09:04:51 -0700 From: Patricia Shanahan User-Agent: Mozilla/5.0 (Windows NT 5.2; WOW64; rv:6.0) Gecko/20110812 Thunderbird/6.0 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: Style Police (a rant) References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Lines: 24 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 70.230.204.158 X-Trace: sv3-2kQRCvphsqv3DjmQcmm+5eQjmqWfealXvP+9F73/H6ShIxdIfk0tYR68On/9k2BdiB6Gnc6u8+WC5IU!jorrJhzPdAJILD9ut18Drv64neAfWdBb13MC8FYljL1ket8f3YPDNHbvPymOOmyXZ/R9sm4yPA48!ZsD/uf8+0HP1jYGAiu/m75mK6FB7/gEX3oO8G6UkJzvuNqA= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2211 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:7498 On 8/29/2011 5:50 PM, Eric Sosman wrote: ... > Almost. It checks exactly what somebody tells it to check in the > config file that somebody requires me to use. ... > I'm just ranting at the absurdity of a criterion that says Object > itself is "not designed for extension." > The criterion could be described better. Maybe it should be something like "needs very careful design and documentation to achieve correct extension". A big chunk of the Object API documentation, for example, discusses the rules for equals, hashCode, and the relationship between them in classes that override them. It seems to me that the best use of this type of tool for that sort of check is to prevent such things being done casually. The extra hoop-jumping for turning off the check in a class is not that big compared to the work that needs to be done to ensure correct extension. Of course, if the powers-that-be forbid turning off the check, there is a much bigger problem. Patricia