Return-Path: Delivered-To: apmail-directory-api-archive@minotaur.apache.org Received: (qmail 71244 invoked from network); 4 Aug 2010 12:06:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Aug 2010 12:06:02 -0000 Received: (qmail 51293 invoked by uid 500); 4 Aug 2010 12:06:02 -0000 Delivered-To: apmail-directory-api-archive@directory.apache.org Received: (qmail 51258 invoked by uid 500); 4 Aug 2010 12:06:00 -0000 Mailing-List: contact api-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: api@directory.apache.org Delivered-To: mailing list api@directory.apache.org Received: (qmail 51250 invoked by uid 99); 4 Aug 2010 12:05:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Aug 2010 12:05:59 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of elecharny@gmail.com designates 209.85.160.178 as permitted sender) Received: from [209.85.160.178] (HELO mail-gy0-f178.google.com) (209.85.160.178) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Aug 2010 12:05:51 +0000 Received: by gyc15 with SMTP id 15so2760201gyc.37 for ; Wed, 04 Aug 2010 05:05:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=+s/R8jh9qbEhxAkvBNK8syi3QkHpKsWzcCqhllvrTkM=; b=WIUoxjLqs206fVdm0Ms7Sx/qPb8IWgc70r8gLAULinm/fPjtk+F6vDiYHBtHs9lkcF Jqbxxv3JEHjzJxvJTDLAJjXuXP8j3zaf5IhIaqYfJSRyC/Ou1JsOTxVNK7oMuTFFVWlP SA4OiaW3ZCnh0GSCnldPzNz89mYwn45l/2l8w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=I4fbm0H8+Dap2+lR3VPPVQ4wW0iaX8jooaMT3Hgp3iEnJMBcRHEt/bnd4zpHXJlt1q Pn32+i/niFyAPTZXJkx6AhfE8h+rUs8PEkDFLi8TDlHUlYBiQQDcg9JkRZg3Y0UKTZEU f1fMxlxPpdQSj0HQTb2bmTuVq/e55p7Z6flyA= Received: by 10.151.156.5 with SMTP id i5mr241893ybo.397.1280923530867; Wed, 04 Aug 2010 05:05:30 -0700 (PDT) Received: from emmanuel-lecharnys-MacBook-Pro.local (lon92-10-78-226-4-211.fbx.proxad.net [78.226.4.211]) by mx.google.com with ESMTPS id v6sm874106ybm.11.2010.08.04.05.05.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 04 Aug 2010 05:05:29 -0700 (PDT) Message-ID: <4C595824.9050202@gmail.com> Date: Wed, 04 Aug 2010 14:08:04 +0200 From: Emmanuel Lecharny Reply-To: elecharny@apache.org User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.7) Gecko/20100713 Thunderbird/3.1.1 MIME-Version: 1.0 To: api@directory.apache.org Subject: Re: removing unused methods from DN class References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org On 8/4/10 12:04 PM, Kiran Ayyagari wrote: > hello guys, > > When I was working on making DN immutable have come across > some of the methods which are not used anywhere in the server code > > 1. DN addAll( int posn, Name name ) - except at two places in DNTest > class, which we can remove This method was created to offer some kind of JNDI conversion tools. I think it's useless, as such a JNDI <-> API tool may use a dedicated class. > 2. DN add( int pos, RDN newRdn ) - there is another method to add RDN You are right, it's useless. > 3. DN addNormalized( RDN newRdn ) - this functionality is already > present in another method add(RDN) +1 too. Doom it. > and the serialization functions > 1. void readExternal( ObjectInput in ) > 2. void writeExternal( ObjectOutput out ) > > this serialization functionality has been moved to DnSerializer class Doom them. > I propose that we get rid of these methods, thoughts? No thoughts. Action ! -- Regards, Cordialement, Emmanuel L�charny www.iktek.com