Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 48655 invoked from network); 17 Oct 2009 10:56:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Oct 2009 10:56:07 -0000 Received: (qmail 92431 invoked by uid 500); 17 Oct 2009 10:56:06 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 92332 invoked by uid 500); 17 Oct 2009 10:56:06 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 92324 invoked by uid 99); 17 Oct 2009 10:56:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Oct 2009 10:56:06 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [85.25.71.29] (HELO mail.troja.net) (85.25.71.29) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Oct 2009 10:56:03 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.troja.net (Postfix) with ESMTP id 0258A45F0F1 for ; Sat, 17 Oct 2009 12:55:42 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.troja.net Received: from mail.troja.net ([127.0.0.1]) by localhost (megaira.troja.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Q1ZIV1bYCbba for ; Sat, 17 Oct 2009 12:55:32 +0200 (CEST) Received: from VEGA (port-83-236-62-3.dynamic.qsc.de [83.236.62.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.troja.net (Postfix) with ESMTPSA id 02A8F45F0EF for ; Sat, 17 Oct 2009 12:55:31 +0200 (CEST) From: "Uwe Schindler" To: Subject: Whitespace inside Generics parameters Date: Sat, 17 Oct 2009 12:55:32 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Thread-index: AcpPGFjiMrsFqpoQTUS2Zdoy+Q8KmA== Just because I came along a lot of new Generics declarations: How should we handle generics parameters in the source code? There are more possibilities: 1. Map 2. Map 3. Map Sun's Java code in src.jar of their JDK always uses (3)[only in some special cases, when it gets complicated, like when ? and generics inside generics are used), which I also prefer and I used it that way during my last patches. But e.g. Kay Kay used (1) in his original patches (I also transformed it to 3). I prefer (3) because the generics are not like function parameters and are itself only identifiers never expressions (they are more annotations to the class name) and in my opinion are part of the class name used. Because of that, there is also no space between base class and "<". As it is part of the declaration and the type itsself, it should be compact. Other opinions? +1 for (3) from my side ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: uwe@thetaphi.de --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org