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 81457D3A1 for ; Thu, 30 Aug 2012 22:25:08 +0000 (UTC) Received: (qmail 90128 invoked by uid 500); 30 Aug 2012 22:25:07 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 89984 invoked by uid 500); 30 Aug 2012 22:25:07 -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 89889 invoked by uid 99); 30 Aug 2012 22:25:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Aug 2012 22:25:07 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of garydgregory@gmail.com designates 209.85.160.43 as permitted sender) Received: from [209.85.160.43] (HELO mail-pb0-f43.google.com) (209.85.160.43) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Aug 2012 22:25:02 +0000 Received: by pbbrq2 with SMTP id rq2so4422495pbb.30 for ; Thu, 30 Aug 2012 15:24:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:in-reply-to:mime-version:date:message-id:subject:to :content-type; bh=u03pdu8REfXZHC8FkcmFPDTV3R0t0c0FbMqTxTGCkXQ=; b=vbBhDZ/I6XB4/oZP9F8PhcxwwV0Ma15gv+pDTp18YQ7syNEKFEWCQkqv2k5lI6vA4F QXr8wOrXL91acH66FkgVp8xJncx62PSADENBBCEhNY/OEWo7LO/+juMMi+EUt/Elp9q5 lVF6uibq/PshjTpk8ASIV7PKxLMahSLVOnnBh7tZIA6fRwB6G249WQFplN/2/urQEQQG 7dNPk3XkxIgX0GM9azbU7UnFHmgIXlNj6ABj4Yml9GRvJTg5ZOItEPlDRrEeDqCPY+mi jCkW4V4hVUHEhrVTIR3nfgpNp0UUzKWME8r2P2rMNz06TibC3/knnH22OA52dyGHd+tB M95w== Received: by 10.66.75.73 with SMTP id a9mr11880579paw.43.1346365480741; Thu, 30 Aug 2012 15:24:40 -0700 (PDT) References: <503FB79A.2070804@gmail.com> <20120830235815.6fe81b1b@james.intern> <-2745176765997238950@unknownmsgid> <20120831002223.310a23cb@james.intern> From: Gary Gregory In-Reply-To: <20120831002223.310a23cb@james.intern> Mime-Version: 1.0 (1.0) Date: Thu, 30 Aug 2012 18:24:38 -0400 Message-ID: <-4153248467647582440@unknownmsgid> Subject: Re: [codec] javadoc style To: Commons Developers List Content-Type: text/plain; charset=UTF-8 On Aug 30, 2012, at 18:22, Christian Hammers wrote: > Am Thu, 30 Aug 2012 18:05:50 -0400 > schrieb Gary Gregory : > >> On Aug 30, 2012, at 17:58, Christian Hammers wrote: >> >>> Am Thu, 30 Aug 2012 16:21:43 -0400 >>> schrieb Gary Gregory : >>> >>>> On Thu, Aug 30, 2012 at 2:57 PM, Thomas Neidhart >>>> wrote: >>>> >>>>> Hi, >>>>> >>>>> there are quite some differences on the javadoc style in the >>>>> source files, e.g. the number of spaces before a @param >>>>> description, whether there is an empty line between @param, >>>>> @return and @throws. >>>>> >>>> >>>> I like the default Eclipse formatting style: >>>> >>>> /** >>>> * ... >>>> * >>>> * @param arg1 >>>> * blah blah blah blah >>>> * @throws SomeException >>>> * blah blah >>>> */ >>> >>> I usually stick with the default Netbeans formatting style which >>> puts them on the same line. So does the example in the official >>> Java Code Conventions (I only refer to it if it does things my way >>> *g*) Doesn't waste so much precious vertical space either :) >>> >>> Anyway, what I wanted to ask was if there is maybe some kind of >>> pom.xml magic that tells Eclipse, Netbeans, IDEA etc how we want >>> the formatting so that we can all continue pressing ctrl-f for >>> reformat before a commit and be sure that everything looks proper. >>> >> >> There is such magic sadly. The best we can do is a combination of >> convention and use of the checkstyle maven plugin. > > Hm, actually there seems to be some possibilities: > For eclipse you can add to the eclipse plugin: > http://maven.apache.org/plugins/maven-eclipse-plugin/examples/load-code-styles.html > And for netbeans you can ship a nb-configuration.xml which is explicitly > intended to be added to the version control system and be shared. > Example: > http://java.net/projects/electric/sources/svn/content/trunk/electric/electric-3d/nb-configuration.xml?rev=13769 > > (In the meantime, please be generous if I submit a patch that contains > a newline to much because auto-formatting added it :-)) One setting: line length 120. Gary > > bye, > > -christian- > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org