commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schaible <joerg.schai...@scalaris.com>
Subject Re: [lang] @inheritDoc
Date Fri, 08 Apr 2011 06:24:28 GMT
Hi Sebb,

sebb wrote:

> On 8 April 2011 00:09, Jörg Schaible <joerg.schaible@gmx.de> wrote:

[snip]

>> Since we have no consensus yet and in case someone else wants to get rid
>> of it, here is the bash command:
>>
>> ============== %< ============
>> $ cd lang
>> $ sed -i -s -e '\,/\*\*, {
>> N
>> /{@inheritDoc}/ {
>> N
>> \,\*/, {
>> \,/\*\*.*\*/,d
>> }
>> }
>> }' `find src -name "*.java"`
>> $ svn diff
>> ============== %< ============
> 
> My sed is a bit rusty - I assume that only removes inheritDoc if there
> is no other text in the block?

Currently not really ensured. However, svn diff contains only valid cases.

> Does it also remove the one-line version?

No.

> There are some occasions when inheritDoc can be useful with additional
> text.

I know. Nevertheless "svn revert -R ." is helpful, if it drops valid lines 
at first attempt ;-)

- Jörg


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message