Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-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 ECF7110135 for ; Mon, 17 Jun 2013 16:25:11 +0000 (UTC) Received: (qmail 53960 invoked by uid 500); 17 Jun 2013 16:24:59 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 53764 invoked by uid 500); 17 Jun 2013 16:24:58 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 53750 invoked by uid 99); 17 Jun 2013 16:24:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Jun 2013 16:24:58 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [217.150.250.48] (HELO kalnich.nine.ch) (217.150.250.48) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Jun 2013 16:24:50 +0000 Received: from [192.168.42.116] (unknown [213.55.184.234]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by kalnich.nine.ch (Postfix) with ESMTPSA id DDFD1B8042D for ; Mon, 17 Jun 2013 18:24:09 +0200 (CEST) Message-ID: <1371486246.5115.13.camel@ubuntu> Subject: Re: Writes to AbstractContentEncoder.completed field From: Oleg Kalnichevski To: HttpComponents Project Date: Mon, 17 Jun 2013 18:24:06 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.8.2-0ubuntu1~raring1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Mon, 2013-06-17 at 14:52 +0100, sebb wrote: > At present, the classes ChunkEncoder and LengthDelimitedEncoder both > use the code > > this.completed = true; > > This is equivalent to super.complete(); these are the only remaining > external acceses to the field. > > Any objections to making that change? > > The completed field can then be deprecated so accidental external > access will be flagged. > > One day we can make it private, which will stop completed from ever > being reset back to false (which I assume would cause some problems!) This will probably help make FindBugs reports look prettier but will hardly make a difference unless we make a decision to stop using direct access to protected variables consistently across the code base. Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org