Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-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 E77C9996D for ; Wed, 23 May 2012 02:44:48 +0000 (UTC) Received: (qmail 73668 invoked by uid 500); 23 May 2012 02:44:48 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 73586 invoked by uid 500); 23 May 2012 02:44:48 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 73575 invoked by uid 99); 23 May 2012 02:44:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 May 2012 02:44:48 +0000 X-ASF-Spam-Status: No, hits=2.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of nufail56@gmail.com designates 74.125.82.50 as permitted sender) Received: from [74.125.82.50] (HELO mail-wg0-f50.google.com) (74.125.82.50) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 May 2012 02:44:43 +0000 Received: by wgbds11 with SMTP id ds11so6806541wgb.31 for ; Tue, 22 May 2012 19:44:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=Z6S9QtYXbDsjZ/QTv4Qc9/cLGaLJgSmuW3oAmFXAv5A=; b=hfx0zTD9FmKH4JFgCGsqYOZwTWp7wN0Ydz/qjue67Ae+VRJ2bFFSGyqGmC6wnkiby7 b6Gr7a45jeCwmq+OzA7J+d4eNjtKXUf3FFTTVyRucqaNHfhpZMQiF0UYVxJF+orEKCmL LZqlZX86LL4B8q1O2lr7VJaZqCfGoOsEmyJQBS5A7zw9omUg0RfO+Cw456nfoqujxO3Y p3p+NvpMcMM348rJ5UMALihAiAm7PmqW2LkppGJUnK7UlVlZjoCX2/uFgKC5ShgYgDqF 9LgXw8J2swo0haNovRz2KC/1eV4uoR63VL7B/oHqYa89n0gklCkeKZMMahBNA5RwCoiR 5G3Q== Received: by 10.180.91.225 with SMTP id ch1mr41158513wib.18.1337741062022; Tue, 22 May 2012 19:44:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.180.5.129 with HTTP; Tue, 22 May 2012 19:44:01 -0700 (PDT) In-Reply-To: <4FBC26CF.1040500@gmail.com> References: <4FBB9DA2.20906@gmail.com> <4FBC26CF.1040500@gmail.com> From: Mohamed Nufail Date: Wed, 23 May 2012 08:14:01 +0530 Message-ID: Subject: Re: Code coverage for client.net package To: derby-dev@db.apache.org Content-Type: multipart/alternative; boundary=f46d04374a05cda57604c0ab1c48 X-Virus-Checked: Checked by ClamAV on apache.org --f46d04374a05cda57604c0ab1c48 Content-Type: text/plain; charset=ISO-8859-1 +1 If only such little functionality is utilized, having those two classes is a waste. The new solution sounds much better. So shall I proceed with the suggested solution? Regards, Nufail. On Wed, May 23, 2012 at 5:22 AM, Bryan Pendleton wrote: > On 05/22/2012 07:51 AM, Knut Anders Hatlen wrote: > >> I'm wondering if it would be more reasonable just to remove the two >> classes and make writeUDT() use either java.io.ByteArrayOutputStream or >> EncodedInputStream.**PublicBufferOutputStream instead. The latter class >> already is in the client.net package, but it would probably be a good >> idea to make it a stand-alone class and not an inner class if we want to >> reuse it in the Request class. >> >> That would reduce the code size and increase the percentage covered. >> > > +1 > > This sounds like a great idea to me. Nufail, what do you think? > > thanks, > > bryan > > -- Mohamed Nufail Undergraduate, Department of Computer Science & Engineering, University of Moratuwa. Blog: http://www.nufailm.blogspot.com/ --f46d04374a05cda57604c0ab1c48 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable +1

If only such little functionality is utilized, having those two c= lasses is a waste. The new solution sounds much better.

So shall I p= roceed with the suggested solution?

Regards,
Nufail.

On Wed, May 23, 2012 at 5:22 AM, Bryan Pendleton <bpendleton.derb= y@gmail.com> wrote:
On 05/22/2012 07:51 AM, Knut Anders Hatlen wrote:
I'm wondering if it would be more reasonable just to remove the two
classes and make writeUDT() use either java.io.ByteArrayOutputStream or
EncodedInputStream.PublicBufferOutputStream instead. The latter clas= s
already is in the client.ne= t package, but it would probably be a good
idea to make it a stand-alone class and not an inner class if we want to reuse it in the Request class.

That would reduce the code size and increase the percentage covered.

+1

This sounds like a great idea to me. Nufail, what do you think?

thanks,

bryan




--
=09 =09 =09 =09

=09 =09 =09 =09

Mohamed Nufail=
Undergraduate,
Department of Computer Science & Engineering,
= University of Moratuwa.
Blog: http:/= /www.nufailm.blogspot.com/


--f46d04374a05cda57604c0ab1c48--