From user-return-24970-apmail-commons-user-archive=commons.apache.org@commons.apache.org Sat Sep 11 03:19:28 2010 Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 40619 invoked from network); 11 Sep 2010 03:19:27 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 Sep 2010 03:19:27 -0000 Received: (qmail 15780 invoked by uid 500); 11 Sep 2010 03:19:26 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 15310 invoked by uid 500); 11 Sep 2010 03:19:23 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 15302 invoked by uid 99); 11 Sep 2010 03:19:22 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Sep 2010 03:19:22 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of guyr-ml1@burntmail.com designates 70.87.63.122 as permitted sender) Received: from [70.87.63.122] (HELO mx02.burntmail.com) (70.87.63.122) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Sep 2010 03:18:58 +0000 Received: from [173.79.74.235] (helo=[192.168.1.60]) by mx02.burntmail.com with esmtpa (Exim 4.63) (envelope-from ) id 1OuGbf-0005tG-Az for user@commons.apache.org; Fri, 10 Sep 2010 22:18:23 -0500 Message-ID: <4C8AF4FA.3020608@burntmail.com> Date: Fri, 10 Sep 2010 23:18:18 -0400 From: Guy Rouillier User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.9) Gecko/20100825 Thunderbird/3.1.3 MIME-Version: 1.0 To: user@commons.apache.org Subject: Re: Static versus Transient Logger Declarations References: <43782B27EE6B5749BBC041BF2AD5ACA429EE112F79@01AESMX09-1.aes.de.ittind.com>,<762238.11836.qm@web63102.mail.re1.yahoo.com>,<43782B27EE6B5749BBC041BF2AD5ACA429EE1134B0@01AESMX09-1.aes.de.ittind.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 9/10/2010 9:15 AM, Martin Gainty wrote: > > Ray and crew > > other than accomodating a main driver such as public static void > main(String args[]) is there any reason for declaring any method or > variable as static? Sure. If you have methods that are self-contained, i.e., use only parameters or local variables, then there is little reason *not* to make them static. Why incur the object overhead? -- Guy Rouillier --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org