Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 55829 invoked from network); 7 Dec 2010 16:35:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Dec 2010 16:35:50 -0000 Received: (qmail 59173 invoked by uid 500); 7 Dec 2010 16:35:49 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 58903 invoked by uid 500); 7 Dec 2010 16:35:47 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 58894 invoked by uid 99); 7 Dec 2010 16:35:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Dec 2010 16:35:47 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.9] (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 07 Dec 2010 16:35:46 +0000 Received: (qmail 55157 invoked by uid 99); 7 Dec 2010 16:35:26 -0000 Received: from localhost.apache.org (HELO [192.168.23.9]) (127.0.0.1) (smtp-auth username markt, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Dec 2010 16:35:26 +0000 Message-ID: <4CFE6246.9090901@apache.org> Date: Tue, 07 Dec 2010 16:35:18 +0000 From: Mark Thomas User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-GB; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: svn commit: r1042786 - in /tomcat/trunk/java/org/apache: catalina/core/ catalina/loader/ tomcat/util/threads/ References: <20101206204915.76849238897A@eris.apache.org> <4CFD53FB.6050208@apache.org> <1291724976.3873.31.camel@cat> <4CFE3678.3060804@apache.org> In-Reply-To: X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 07/12/2010 14:48, Konstantin Kolinko wrote: > 2010/12/7 Mark Thomas : >> >> My preference is for operator before since I believe it aids readability. >> YMMV. >> >>> So is operator after line wrapping really a tomcat standard? >> >> operator before line wrapping is the direction the code is heading in and >> the direction I think it should continue to head. >> > > My personal preference is that the new code formatting were more or > less consistent with the rest of the file. +1 > Trying to enforce a style here goes nowhere: such changes cannot be > backported to TC6, and you cannot limit checkstyle to check only files > created after certain date. Before any checkstyle check can be enabled, the whole code-base has to be changed to conform to the check. This tends to be something I do when I have spare 30 mins I can't do anything else in, I'm stuck somewhere without internet connectivity or I just feel the need to do something fairly mindless for a while. I usually add the checks I am thinking of working on to the checksyle file in advance of doing the work - commented out with an indication of the current number of failures - to give folks a chance to comment. > If you have some "long string" that occupies all space up to position > 79, forcing some operator after it to stay on the same line > effectively increases its length by several chars and will cause the > whole string to be placed on the new line. It just wastes space and > becomes ugly. +1. Line length is an area I am becoming increasingly happy to be flexible. Aim for 80 but if 81 or 82 (or anything < ~90) makes the code more readable then I'd be fine with it. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org