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 913E2E388 for ; Tue, 5 Feb 2013 11:14:36 +0000 (UTC) Received: (qmail 76829 invoked by uid 500); 5 Feb 2013 11:14:35 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 76539 invoked by uid 500); 5 Feb 2013 11:14:34 -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 76504 invoked by uid 99); 5 Feb 2013 11:14:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2013 11:14:33 +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 (athena.apache.org: domain of jodastephen@gmail.com designates 209.85.128.177 as permitted sender) Received: from [209.85.128.177] (HELO mail-ve0-f177.google.com) (209.85.128.177) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2013 11:14:28 +0000 Received: by mail-ve0-f177.google.com with SMTP id m1so10797ves.22 for ; Tue, 05 Feb 2013 03:14:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :content-transfer-encoding; bh=qnz9beBkIrhyCKauxOB+KTYPOH9fiWy9uoh+9UzqjvE=; b=NfbhyMRS4siqLiSQduw90phsOe4ZC5INLGQDK5hacbltjjizvXhEAqf5mUs7KjPCl+ i6Vln2yP2/6g9HZZX+uT1Z1gNIiziz65UTnLkkqr5mNkf3AHXiQZSNxx/XeQ8ZKI2FZZ 1LcKAUQ83boE15wMRquN7elCDG1urSRCJe2pGBPMGefyJm77OITHolq9ggwgdp7b2iHg 2iGVxZaWu8FB9apkstWecO+RZ/lwi7vGSN5KIu88SMmmv3p29LyABvyxf4IKWT1cGKy4 JZCEJhW9Obz4DHNUNXLqidirQo0uNBIs70hJE0+4eyNcOupx7UwUdX5DvbhIatpQvZ18 3l6w== X-Received: by 10.52.22.194 with SMTP id g2mr23996734vdf.91.1360062847436; Tue, 05 Feb 2013 03:14:07 -0800 (PST) MIME-Version: 1.0 Sender: jodastephen@gmail.com Received: by 10.59.13.69 with HTTP; Tue, 5 Feb 2013 03:13:47 -0800 (PST) In-Reply-To: References: From: Stephen Colebourne Date: Tue, 5 Feb 2013 11:13:47 +0000 X-Google-Sender-Auth: aGnTmN9taTDFhDntfRT5Chk7HV0 Message-ID: Subject: Re: [ALL] How to handle static imports [was: Re: svn commit: r1441784 - /commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/PropertyDescriptorsRegistry.java] To: Commons Developers List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org FYI, the Project Lambda Streams code and JSR-310 in JDK 1.8 are both written with static imports in mind. Moreover, with support for static methods in interfaces being added, this is likely to increase as a pattern. Those facts may or may not affect decisions in commons. Stephen On 4 February 2013 21:32, Benedikt Ritter wrote: > Hi, > > we had a little discussion in BeanUtils2, regarding static imports (see > below). To increase visibility and get some more feedback, I'm forwarding > this to [ALL] > > We haven't decided yet how to handle static imports. To form some rules, > we'd like to hear what others think about static imports and what rules o= f > thumb you use in your projects. > > I'm exited to hear your opinions :) > Regards, > Benedikt > > > 2013/2/4 J=F6rg Schaible > >> Hi, >> >> Benedikt Ritter wrote: >> >> > Hi Simo, >> > >> > thanks for sharing your thoughts! I personally try to avoid static >> > imports. Especially when you come to a legacy code base IMHO it makes = the >> > code harder to understand. You always have to look, where a method com= es >> > from. >> >> Actually I avoid static imports for the same reason. >> >> > Also you may have the problem, that you accidentally override >> > imported static methods, when defining a new static method with the sa= me >> > name. BU2 is a very small code base, so it would be okay for me to rev= ert >> > the change. >> > >> > Nevertheless I'd be interested to hear what others thing about this >> topic. >> >> my 2=A2 >> >> - J=F6rg >> >> >> --------------------------------------------------------------------- >> 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