Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 21B8E7E20 for ; Fri, 25 Nov 2011 07:13:38 +0000 (UTC) Received: (qmail 20225 invoked by uid 500); 25 Nov 2011 07:13:37 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 20093 invoked by uid 500); 25 Nov 2011 07:13:35 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 20079 invoked by uid 99); 25 Nov 2011 07:13:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Nov 2011 07:13:34 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of SRS0=Qlcq=6H=m4x.org=sebastien.brisard@bounces.m4x.org designates 129.104.30.34 as permitted sender) Received: from [129.104.30.34] (HELO mx1.polytechnique.org) (129.104.30.34) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Nov 2011 07:13:27 +0000 Received: from mail-vx0-f171.google.com (mail-vx0-f171.google.com [209.85.220.171]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTPSA id 00AAC14045561 for ; Fri, 25 Nov 2011 08:13:06 +0100 (CET) Received: by vcbfo1 with SMTP id fo1so3734016vcb.30 for ; Thu, 24 Nov 2011 23:13:06 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.175.131 with SMTP id ba3mr2764326vcb.110.1322205186041; Thu, 24 Nov 2011 23:13:06 -0800 (PST) Received: by 10.52.74.5 with HTTP; Thu, 24 Nov 2011 23:13:06 -0800 (PST) Date: Fri, 25 Nov 2011 08:13:06 +0100 Message-ID: Subject: [math] javadoc implicit formatting rules From: =?ISO-8859-1?Q?S=E9bastien_Brisard?= To: Commons Developers List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-AV-Checked: ClamAV using ClamSMTP at svoboda.polytechnique.org (Fri Nov 25 08:13:07 2011 +0100 (CET)) X-Org-Mail: sebastien.brisard.1997@polytechnique.org X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Flag: No, tests=bogofilter, spamicity=0.142391, queueID=4039B14045565 Hi, here are a few questions about the implicit rules in use in CM for formatting Javadoc comments, that I've wanted to post for a long time. Since I'm now reviewing other people's patches, I think it's high time to clear these questions up. If I'm not mistaken, (1) every @param tag should start with a capital letter and end with a peri= od (2) every @return tag should end with a period When I first submitted a patch (and it was corrected accordingly), I was a little surprised, since it is in contradiction with conventions [1] which I (and obviously, others) was used to (3) Regarding @param tags: "The description begins with a lowercase letter if it is a phrase (contains no verb), or an uppercase letter if it is a sentence. End the phrase with a period only if another phrase or sentence follows it." (4) Regarding @return tags: "Use the same capitalization and punctuation as you used in @param." I'm not saying these conventions are good/bad. However, they are consistent with automatic tags (eg "Specified by", which do *not* end with a period). Besides, I think rules (1) and (2) are not consistently enforced throughout CM (to take but one example: I constantly find myself reverting to my old habits...) and so I'm reluctant to correct other people's work to try and comply with rules I'm not absolutely sure everyone agrees about. I think it would be nice if everyone who is particularly attached to an unstated rule just states it. We could then gather all those rules in the Developers resources section of the website (I can do that, please just write up the list in this thread). This would allow us, and others, to refer to this document in order to ensure homogeneity throughout the whole library. What do you think? Best regards, S=E9bastien [1] http://www.oracle.com/technetwork/java/javase/documentation/index-13786= 8.html#tag --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org