Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 47282 invoked from network); 26 Oct 2009 21:59:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Oct 2009 21:59:37 -0000 Received: (qmail 41426 invoked by uid 500); 26 Oct 2009 21:59:37 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 41337 invoked by uid 500); 26 Oct 2009 21:59:37 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 41326 invoked by uid 99); 26 Oct 2009 21:59:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Oct 2009 21:59:36 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gshimansky@gmail.com designates 209.85.220.222 as permitted sender) Received: from [209.85.220.222] (HELO mail-fx0-f222.google.com) (209.85.220.222) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Oct 2009 21:59:27 +0000 Received: by fxm22 with SMTP id 22so11557914fxm.36 for ; Mon, 26 Oct 2009 14:59:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=lD0ZACfdAGE8IFHhHDxkRbMsg9tNqNBhXzjEz9q05J4=; b=uOlSoTWyuG46jlt33zKyen4WZRHz44Nh9gSemxPWA5Cf0vAxZ9hCxph1tEEI3ekg/y JX8HcW+yrlkf2YdMITOYxrrgddcU5Mlselfw1fuQ5eEnmFkDKovd+daj3HIKgQjHy7hQ duALOeMtfIDeRsXe54s5fktg5Qd4XUWEdO1R4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:subject:date:user-agent:references:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:message-id; b=WTcfVCJIH59cpvrDgX1+whG+oIud5rJx2PWQOyNCuvYk/q2MsedJo8I6SfavQONDkq ua9mylN+wMbPrAxMUPa7PzF052o/ymkXVwXHNw8wJTImmR5VsuFoCA+wTHYspxBaMSlG c8Pa8TIM8kkO316hKyp6A992dm46mP5HuNjTQ= Received: by 10.103.76.21 with SMTP id d21mr6142535mul.78.1256594347450; Mon, 26 Oct 2009 14:59:07 -0700 (PDT) Received: from desktop ([91.79.22.96]) by mx.google.com with ESMTPS id b9sm1138990mug.9.2009.10.26.14.59.04 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 26 Oct 2009 14:59:05 -0700 (PDT) Sender: Gregory Shimansky From: Gregory Shimansky To: dev@harmony.apache.org Subject: Re: Idiomatic Java: return-at-method-end in Harmony Date: Tue, 27 Oct 2009 00:58:58 +0300 User-Agent: KMail/1.9.10 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200910270058.59096.gshimansky@apache.org> X-Virus-Checked: Checked by ClamAV on apache.org On 27 October 2009 Jesse Wilson wrote: > Harmony Team, > > Some of the Java code in Harmony suffers from being written in a non-Java > style. In particular, our Java code often attempts to limit the number of > exit points from a method. This approach is common in C/C++ programs > because of the need to manually collect garbage. I don't think anyone who writes C/C++ cares about it. Usually such style is a result of changes upon changes on some code with intention to make minimal changes to it. > In patches I'll be submitting, I'll use the second form, which is idiomatic > Java. I may also submit patches that convert the first style to the second, > but usually only when there's other useful cleanup to accompany it. If > you'd rather I not, please let me know and we'll arm-wrestle. If it works, don't fix it. -- Gregory