commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: svn commit: r1298215 - in /commons/sandbox/csv/trunk/src/main/java/org/apache/commons/csv: CharBuffer.java ExtendedBufferedReader.java UnicodeUnescapeReader.java
Date Thu, 08 Mar 2012 18:39:43 GMT
On 8 March 2012 08:04, Emmanuel Bourg <ebourg@apache.org> 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: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message