Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Stanimir Stamenkov Newsgroups: comp.lang.java.programmer Subject: [OT] Re: Double always returning 0.0 Date: Thu, 21 Apr 2011 07:30:16 +0300 Organization: A noiseless patient Spider Lines: 26 Message-ID: References: <201104182005433244-jasonsavlov@mecom> <2011041911160346799-jasonsavlov@mecom> <2011041911200138175-jasonsavlov@mecom> <2011042013535527735-jasonsavlov@gmailcom> <2011042014193994923-jasonsavlov@gmailcom> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 21 Apr 2011 04:30:15 +0000 (UTC) Injection-Info: mx01.eternal-september.org; posting-host="2F9wFk8uhjDHDbuneVzw7g"; logging-data="18469"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+9GShd0Rdn/grXfGH0SroW" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.2pre) Gecko/20110420 SeaMonkey/2.1pre In-Reply-To: X-Face: )>>ChyF_H public Cat() { > super(); > } > > The call to the 'super()' constructor is unnecessary, albeit harmless. I often want the "default" no-args constructor explicitly declared but I've setup my environment to trigger warning for empty undocumented blocks like: public Cat() { } so I usually write it as: public Cat() { //super(); } The commented out |super()| call (implicitly done by the compiler) acting as documentation. -- Stanimir