Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.netfront.net!not-for-mail From: Wanja Gayk Newsgroups: comp.lang.java.programmer Subject: Re: @Override Date: Tue, 24 Jul 2012 16:06:11 +0200 Organization: Netfront http://www.netfront.net/ Lines: 25 Message-ID: References: <75036e8b-8b5f-4ea4-aef7-c063249f5707@googlegroups.com> NNTP-Posting-Host: 77.176.246.254 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: adenine.netfront.net 1343138770 67551 77.176.246.254 (24 Jul 2012 14:06:10 GMT) X-Complaints-To: news@netfront.net NNTP-Posting-Date: Tue, 24 Jul 2012 14:06:10 +0000 (UTC) User-Agent: MicroPlanet-Gravity/3.0.4 Xref: csiph.com comp.lang.java.programmer:16303 In article <75036e8b-8b5f-4ea4-aef7-c063249f5707@googlegroups.com>, bob@coolfone.comze.com says... > > Is it really necessary to write @Override when you override or is this just "a good thing"? It's not necessary but beneficial. Not only because it documents something, but also because your IDE checks that and in case you're changing some interface of a parent class you'll get an error message for the classes that now claim to override something, but don't (because you've changed theparents method's signature). Since this kind of refactoring-failure can easily lead to a non apparent error, it's good to check that. Kind regards, -Wanja- -- ..Alesi's problem was that the back of the car was jumping up and down dangerously - and I can assure you from having been teammate to Jean Alesi and knowing what kind of cars that he can pull up with, when Jean Alesi says that a car is dangerous - it is. [Jonathan Palmer] --- Posted via news://freenews.netfront.net/ - Complaints to news@netfront.net ---