Return-Path: X-Original-To: apmail-groovy-dev-archive@minotaur.apache.org Delivered-To: apmail-groovy-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2688918F57 for ; Thu, 12 Nov 2015 20:17:18 +0000 (UTC) Received: (qmail 13802 invoked by uid 500); 12 Nov 2015 20:17:17 -0000 Delivered-To: apmail-groovy-dev-archive@groovy.apache.org Received: (qmail 13757 invoked by uid 500); 12 Nov 2015 20:17:17 -0000 Mailing-List: contact dev-help@groovy.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.incubator.apache.org Delivered-To: mailing list dev@groovy.incubator.apache.org Received: (qmail 13747 invoked by uid 99); 12 Nov 2015 20:17:17 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Nov 2015 20:17:17 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 1F54B180A8B for ; Thu, 12 Nov 2015 20:17:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.79 X-Spam-Level: X-Spam-Status: No, score=0.79 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id im8knUokpsH1 for ; Thu, 12 Nov 2015 20:17:04 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id F2366215DF for ; Thu, 12 Nov 2015 20:17:03 +0000 (UTC) Received: from [10.107.150.200] ([80.187.102.23]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0LfYqz-1alf380M1Z-00p3bi for ; Thu, 12 Nov 2015 21:16:55 +0100 Subject: Re: incubator-groovy git commit: escape characters in javadoc and remove unnecessary @inheritdoc javadoc annotations To: dev@groovy.incubator.apache.org References: From: Pascal Schumacher Message-ID: <5644F3B6.4050109@gmx.net> Date: Thu, 12 Nov 2015 21:16:54 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:q7Z/J5WW6mukiFtoysNfOnu2LcrMq2e1ehqODSKjW5nklhSaACu ADn6A22/Tfd/D0aWN/FxpBQcNUi+yDCDXnn8/2QH0KQPXzZwpigXgx1UEPfNfi4VEe2hO9h 1IgHxC1Bdn1G82R2lFWvRHyXWwFnYEA/9lr7FzQZSmEf0Wzmqnxe9pK6QLvAF6BRHgR83/x nvcKnzasb06mA+AUzZkUA== X-UI-Out-Filterresults: notjunk:1;V01:K0:NzpU3b8+N7I=:CsXVegsBVpvaBP40Z6Okou pvlTsXwLJcJN+ENxOzCME/gsaOBgXI9p2OM6jmDu678Ye/X5OHMz5nmlwfAGFxt4LDhvMrCDT A3Wi6y6w1h5a2st+gb5dOSh1Qy5ThaGRH3RisbqRrjtgNdIXwAImKad4O/ZqfriZUtNIDkh+U 6wxDDcAoLFzKmBY4gny1xVcXF8FDLDbPyWT/8/haoL5aPspx/ede4c3svfkhORW1nrXTXT5xp liR+5h4h9au8lzmsQhszl0/Jkip0hCR8Hz0WqKOR1MvUlIpMsVOK/qovhOszUoA3jZwlmjf+9 Z/9CuOch/BdRbXJo7bRNIcchmCDGLKoc+jHaWwe6z0sqlA1U8oMQRFjGGTBvW6YOGZPaRU6H7 SxbvsmDqp0E9vLvaVJ0nIM7c9aSry4EmUSeQMu6oMg9ZLx6CXOQVPjEOMHDzpmhKvp+WQtRn/ J9i3MX8LG6dA9syZrsPbu9AMiwywkL+QtIdQvf8957Pn5D/QYbLCScXwUH7k/gkbsVuktr5jh Cj33j0BEgU6+G7YY3sMgaI98dqzQXPWt/zkoa+9aXBQNJOPBogOedHT5wcEbPAwwIylipGgja SlSDmYTMq4eQyNzOYz8m3IYHh7Eht46R/ODBJ4n8WV6gGxPrFwp3xNaqObXwRs3OlkVsuAL53 trsw/jvFNtH+yy2rZnHbEF6REIGYO+hKViB/ZpjMgoro9MuoVci+jN8f1p8iVmBt5Xc8qcas0 qN51HbbOSxIx8rRY9xMmGB2xHfVmxrJfq32Lg/KtdngxWtxEZ3Ox5FvBc3ULtJmx0lsl4dZxo FwY648T Using: /** * {@inheritDoc} */ should never be necessary, because: >The Javadoc tool has the ability to copy or "inherit" method comments in classes and interfaces under the following two circumstances. Constructors, fields and nested classes do not inherit doc comments. > >Automatically inherit comment to fill in missing text - When a main description, or @return, @param or @throws tag is missing from a method comment, the Javadoc tool copies the corresponding main description or >tag comment from the method it overrides or implements (if any), according to the algorithm below. https://docs.oracle.com/javase/6/docs/technotes/tools/solaris/javadoc.html "Automatic Copying of Method Comments" Or I'm I missing something? Am 12.11.2015 um 21:06 schrieb Paul King: > When you say "unnecessary", do you mean currently not supported by GroovyDoc? > Won't the info go missing from: > http://docs.groovy-lang.org/latest/html/api/groovy/lang/ObjectRange.html > And also be missing in the gapi once we fix: > https://issues.apache.org/jira/browse/GROOVY-3782 > > Or am I missing something? > > > On Fri, Nov 13, 2015 at 5:57 AM, wrote: >> Repository: incubator-groovy >> Updated Branches: >> refs/heads/master 3001ba559 -> 459638b0e >> >> >> escape characters in javadoc and remove unnecessary @inheritdoc javadoc annotations >> >> >> Project: http://git-wip-us.apache.org/repos/asf/incubator-groovy/repo >> Commit: http://git-wip-us.apache.org/repos/asf/incubator-groovy/commit/459638b0 >> Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/459638b0 >> Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/459638b0 >> >> Branch: refs/heads/master >> Commit: 459638b0e65e8974b25ff7584c35aaf183dcce7f >> Parents: 3001ba5 >> Author: pascalschumacher >> Authored: Thu Nov 12 20:56:43 2015 +0100 >> Committer: pascalschumacher >> Committed: Thu Nov 12 20:56:43 2015 +0100 >> >> ---------------------------------------------------------------------- >> src/main/groovy/lang/ObjectRange.java | 38 +----------------------------- >> 1 file changed, 1 insertion(+), 37 deletions(-) >> ---------------------------------------------------------------------- >> >> >> http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/459638b0/src/main/groovy/lang/ObjectRange.java >> ---------------------------------------------------------------------- >> diff --git a/src/main/groovy/lang/ObjectRange.java b/src/main/groovy/lang/ObjectRange.java >> index 30c8e43..d328631 100644 >> --- a/src/main/groovy/lang/ObjectRange.java >> +++ b/src/main/groovy/lang/ObjectRange.java >> @@ -71,7 +71,7 @@ public class ObjectRange extends AbstractList implements Range { >> } >> >> /** >> - * Creates a new {@link ObjectRange} assumes smaller <= larger, else behavior is undefined. >> + * Creates a new {@link ObjectRange} assumes smaller <= larger, else behavior is undefined. >> * Caution: Prefer the other constructor when in doubt. >> * >> * Optimized Constructor avoiding initial computation of comparison. >> @@ -167,9 +167,6 @@ public class ObjectRange extends AbstractList implements Range { >> } >> } >> >> - /** >> - * {@inheritDoc} >> - */ >> public boolean equals(Object that) { >> return (that instanceof ObjectRange) ? equals((ObjectRange) that) : super.equals(that); >> } >> @@ -187,30 +184,18 @@ public class ObjectRange extends AbstractList implements Range { >> && DefaultTypeTransformation.compareEqual(this.to, that.to); >> } >> >> - /** >> - * {@inheritDoc} >> - */ >> public Comparable getFrom() { >> return from; >> } >> >> - /** >> - * {@inheritDoc} >> - */ >> public Comparable getTo() { >> return to; >> } >> >> - /** >> - * {@inheritDoc} >> - */ >> public boolean isReverse() { >> return reverse; >> } >> >> - /** >> - * {@inheritDoc} >> - */ >> public Object get(int index) { >> if (index < 0) { >> throw new IndexOutOfBoundsException("Index: " + index + " should not be negative"); >> @@ -234,9 +219,6 @@ public class ObjectRange extends AbstractList implements Range { >> return value; >> } >> >> - /** >> - * {@inheritDoc} >> - */ >> public Iterator iterator() { >> return new Iterator() { >> private int index; >> @@ -292,9 +274,6 @@ public class ObjectRange extends AbstractList implements Range { >> throw new UnsupportedOperationException("size must not be changed"); >> } >> >> - /** >> - * {@inheritDoc} >> - */ >> public int size() { >> if (size == -1) { >> if ((from instanceof Integer || from instanceof Long) >> @@ -330,9 +309,6 @@ public class ObjectRange extends AbstractList implements Range { >> return size; >> } >> >> - /** >> - * {@inheritDoc} >> - */ >> public List subList(int fromIndex, int toIndex) { >> if (fromIndex < 0) { >> throw new IndexOutOfBoundsException("fromIndex = " + fromIndex); >> @@ -350,16 +326,10 @@ public class ObjectRange extends AbstractList implements Range { >> return new ObjectRange((Comparable) get(fromIndex), (Comparable) get(--toIndex), reverse); >> } >> >> - /** >> - * {@inheritDoc} >> - */ >> public String toString() { >> return reverse ? "" + to + ".." + from : "" + from + ".." + to; >> } >> >> - /** >> - * {@inheritDoc} >> - */ >> public String inspect() { >> String toText = InvokerHelper.inspect(to); >> String fromText = InvokerHelper.inspect(from); >> @@ -383,9 +353,6 @@ public class ObjectRange extends AbstractList implements Range { >> return false; >> } >> >> - /** >> - * {@inheritDoc} >> - */ >> public void step(int step, Closure closure) { >> if (step == 0) { >> if (compareTo(from, to) != 0) { >> @@ -422,9 +389,6 @@ public class ObjectRange extends AbstractList implements Range { >> } >> } >> >> - /** >> - * {@inheritDoc} >> - */ >> public List step(int step) { >> IteratorClosureAdapter adapter = new IteratorClosureAdapter(this); >> step(step, adapter); >>