commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Honton, Charles" <>
Subject Re: svn commit: r1298215 - in /commons/sandbox/csv/trunk/src/main/java/org/apache/commons/csv:
Date Thu, 08 Mar 2012 19:48:39 GMT
I've found the @Override annotation useful to detect when you didn't
intend to override a method.  For example, using Eclipse warnings, I found
a finalize() method.  This method was explicitly called from another
class.  I'm pretty sure the original author did not intend the garbage
collector to call this finalize method.

I've also run across  "boolean equals(T)" method implementations where I'm
sure the authors intent was to override the "boolean equals(Object)"


On 3/8/12 10:39 AM, "sebb" <> wrote:

>On 8 March 2012 08:04, Emmanuel Bourg <> wrote:
>> Le 08/03/2012 02:21, Konstantin Kolinko a écrit :
>>> Google shows ~1500 hits for "toStrng".
>> More precisely 377 hits for "toStrng" + Java, versus 21,000,000 hits for
>> toString, which is about 0.001%.
>> So @Override is useless 99.999% of the time in this case.
>That's not a valid conclusion, because it does not take into account
>whether @Override is present or not.
>Besides, toString is extremely well known as a method name.
>The point is, @Override is useful as documentation of the intention of
>the coder.
>You may not find it useful for your own code - so don't use it in your
>own code.
>However, ASF code is developed by many different people over a long
>period of time, and having this annotation helps communicate the
>intention of the coder to subsequent maintainers.
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message