Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 77881 invoked from network); 8 Dec 2005 20:35:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Dec 2005 20:35:29 -0000 Received: (qmail 33547 invoked by uid 500); 8 Dec 2005 20:35:27 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 33536 invoked by uid 99); 8 Dec 2005 20:35:27 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Dec 2005 12:35:27 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [84.234.68.10] (HELO mail.yukatan.fi) (84.234.68.10) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 08 Dec 2005 12:35:26 -0800 Received: (qmail 19537 invoked by uid 511); 8 Dec 2005 20:35:03 -0000 Received: from yyymmdcxi.dsl.saunalahti.fi (HELO [192.168.1.3]) (85.76.8.113) (smtp-auth username jz@yukatan.fi, mechanism cram-md5) by mail.yukatan.fi (qpsmtpd/0.30) with ESMTP; Thu, 08 Dec 2005 22:35:03 +0200 Message-ID: <439898F5.5070301@zitting.name> Date: Thu, 08 Dec 2005 22:35:01 +0200 From: Jukka Zitting User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: fi, en MIME-Version: 1.0 To: jackrabbit-dev@incubator.apache.org Subject: Re: checkins to jcr-server References: <4397F383.1090209@day.com> <439859E5.8050100@osafoundation.org> In-Reply-To: <439859E5.8050100@osafoundation.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Check-By: mail.yukatan.fi X-Old-Spam-Status: No, hits=-1.4 required=5.0 tests=ALL_TRUSTED X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, Brian Moseley wrote: > i think the burden of proof should be on the person who wants to keep > methods private ;) I'm not so familiar with the jcr-server design that I can comment on design decisions there, but in general i disagree with the above principle. :-) A method should be private if there is no specific reason otherwise. A non-private method is a part of the external API contract of a class and carries with it all the burden of API compatibility. The narrower the API contract of a class is the easier the class is to restructure to match an evolving environment. A narrower API is also easier to document and maintain. In general it is much easier to relax the visibility of a method when needed than to restrict the availability of a non-private method. BR, Jukka Zitting