Return-Path: Delivered-To: apmail-incubator-open-jpa-dev-archive@locus.apache.org Received: (qmail 93751 invoked from network); 2 Jun 2006 20:33:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Jun 2006 20:33:39 -0000 Received: (qmail 56212 invoked by uid 500); 2 Jun 2006 20:33:39 -0000 Delivered-To: apmail-incubator-open-jpa-dev-archive@incubator.apache.org Received: (qmail 56190 invoked by uid 500); 2 Jun 2006 20:33:39 -0000 Mailing-List: contact open-jpa-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: open-jpa-dev@incubator.apache.org Delivered-To: mailing list open-jpa-dev@incubator.apache.org Received: (qmail 56179 invoked by uid 99); 2 Jun 2006 20:33:38 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Jun 2006 13:33:38 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.18.42.249] (HELO nwkea-pix-1.sun.com) (192.18.42.249) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Jun 2006 13:33:37 -0700 Received: from d1-sfbay-05.sun.com ([192.18.39.115]) by nwkea-pix-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id k52KXCl8003139 for ; Fri, 2 Jun 2006 13:33:13 -0700 (PDT) Received: from conversion-daemon.d1-sfbay-05.sun.com by d1-sfbay-05.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) id <0J0900G012CQNP00@d1-sfbay-05.sun.com> (original mail from Craig.Russell@Sun.COM) for open-jpa-dev@incubator.apache.org; Fri, 02 Jun 2006 13:33:12 -0700 (PDT) Received: from [129.144.89.206] by d1-sfbay-05.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPSA id <0J0900AG12FC5S20@d1-sfbay-05.sun.com> for open-jpa-dev@incubator.apache.org; Fri, 02 Jun 2006 13:33:12 -0700 (PDT) Date: Fri, 02 Jun 2006 13:33:10 -0700 From: Craig L Russell Subject: Re: java.util.concurrent In-reply-to: Sender: Craig.Russell@Sun.COM To: open-jpa-dev@incubator.apache.org Message-id: MIME-version: 1.0 X-Mailer: Apple Mail (2.750) Content-type: multipart/signed; protocol="application/pkcs7-signature"; boundary=Apple-Mail-112--825500831; micalg=sha1 References: <2A86AFBC-206D-4D7C-BF94-753B09EDCB9C@SUN.com> <9FDA7083-DDA3-41D7-BD07-8B5B34BB4A91@mac.com> <4480983C.2070105@pobox.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --Apple-Mail-112--825500831 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On Jun 2, 2006, at 1:22 PM, Abe White wrote: >> But not everyone favors it. For a project like this, where there are >> multiple people working on things, having the imports called out >> really >> helps. >> >> What's the downside? > > Just that it's verbose and makes writing imports by hand take > longer. But I don't feel strongly about it. I'm find with > explicit imports if that's the consensus. > I've already given my rationale why I like explicit imports. > >> I'm a "before dot" man myself so it's clear from just looking at the >> beginning of the line it's a method/field. > > I'm an after dot person, but again I'm fine with whatever, > including not enforcing any particular policy on this. I don't feel strongly enough to require a standard. > >> How about just configuring IDEA/Eclipse to do it right, and fixing >> things as we go along? > > I like the idea of using an IDE to fix everything. I don't use an > IDE myself, so I don't know whether it can make the necessary > fixes. Here's a list of changes necessary to get SolarMetric code > looking more like the standards we've outlined: > - Change to explicit imports. yes > - Move opening brace to same line. yes > - Move up "else" and "catch" to same line as previous closing brace. yes > - Move up "extends" and "implements" to same line as class > declaration. yes > - Move up "throws" to same line as method declaration. yes > - Remove spaces before opening parens on method calls. don't really care > - Change tabs to spaces. yes > - Remove extraneous spaces from field declarations (we tend to > align declarations with tabs, so converting the tabs to spaces make > sit look horrible... plus I'd like to just stop aligning > declarations altogether anyway). don't care about extraneous spaces or aligning declarations, but would like to remove tabs > - Remove extraneous spaces from Javadoc (again, we use tabs to > align things a lot). don't care > - Collapse double-blank lines into a single blank line (we use 2 > blank lines for block separators a lot). don't care > - Make above changes without creating lines over 80 chars. yes > > My formatter does all the above except the explicit imports, and it > sometimes create lines over 80 chars when moving up extends/ > implements/throws lines. Not mentioned on the list: it's also able > to take a previously-continued line and turn it back into a single > line if the above changes cause the single line to now be <= 80 chars. > > If IDE's can't do that, then perhaps a hybrid approach where we use > my formatter to get everything most of the way there, then use an > IDE to get the explicit imports as we go along. This also has the > advantage of getting everything into an almost-there style in one > fell swoop, rather than having two totally different styles until > someone with an IDE opens all the files eventually. > > Note that until we can get everything necessary from Kodo into > OpenJPA, we probably don't want to mess with formatting, because we > have to be able to merge changes back and forth between the > codebases easily. I like the idea of a massive change early in the cycle (before the initial checkin is fine, or sometime shortly thereafter). For the first week or so, I'm mostly going to be reading the code anyway. Craig Craig Russell Architect, Sun Java Enterprise System http://java.sun.com/products/jdo 408 276-5638 mailto:Craig.Russell@sun.com P.S. A good JDO? O, Gasp! --Apple-Mail-112--825500831 Content-Transfer-Encoding: base64 Content-Type: application/pkcs7-signature; name=smime.p7s Content-Disposition: attachment; filename=smime.p7s MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGUDCCAwkw ggJyoAMCAQICEB7Y7fLHmKoeHTUdbtYrvpAwDQYJKoZIhvcNAQEEBQAwYjELMAkGA1UEBhMCWkEx JTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMTI1RoYXd0ZSBQ ZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA1MTIxNTIxNDc0NFoXDTA2MTIxNTIxNDc0 NFowbDEQMA4GA1UEBBMHUnVzc2VsbDEUMBIGA1UEKhML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