Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-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 F0C0B10E70 for ; Fri, 20 Dec 2013 18:10:02 +0000 (UTC) Received: (qmail 92455 invoked by uid 500); 20 Dec 2013 18:08:00 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 92075 invoked by uid 500); 20 Dec 2013 18:07:44 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 92012 invoked by uid 99); 20 Dec 2013 18:07:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Dec 2013 18:07:38 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of garydgregory@gmail.com designates 209.85.214.47 as permitted sender) Received: from [209.85.214.47] (HELO mail-bk0-f47.google.com) (209.85.214.47) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Dec 2013 18:07:32 +0000 Received: by mail-bk0-f47.google.com with SMTP id mx12so1316180bkb.34 for ; Fri, 20 Dec 2013 10:07:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=SHbQP9unVQ3cD8UzaTVlyhZO2MrM+SJc4c3fKJ5VhCk=; b=Cd3v8CWKTbYiEOhSw+WM6xo6LVmh+Fyx0qquvlkkwQyjwA6Conncmc7x+A9zI1fU0l icseU9JsCl7PvhiF4dhEp9Q/D1LB9C51QoY1PXPP7KlPxjTLmjKpJpiGOLoiR4BkF5gs NkKFrkG9j3tRocz9GGSteDpzRMp7OWiTF/NP/Bu9xxAnmRugivuKuo0FWI+uzW93SdOx 1TsL2D34Lhzseut6+wsV75b9T91TDVdUMLvvczl5aPs2K4VJ1IQvAtAZ/FYayg5CBgbb G9TzR5Ihhfqs+1h/dE/Xlbjo26kKXzv75dGHeIa++QEAq1Liyi7VClznM4r2Nj/JoZ/e yCXA== MIME-Version: 1.0 X-Received: by 10.204.242.68 with SMTP id lh4mr4879323bkb.19.1387562832062; Fri, 20 Dec 2013 10:07:12 -0800 (PST) Received: by 10.204.102.201 with HTTP; Fri, 20 Dec 2013 10:07:11 -0800 (PST) In-Reply-To: <87wqiz7728.fsf@v35516.1blu.de> References: <20131220171807.E722D23888FE@eris.apache.org> <52B47CB3.30202@apache.org> <87wqiz7728.fsf@v35516.1blu.de> Date: Fri, 20 Dec 2013 13:07:11 -0500 Message-ID: Subject: Re: svn commit: r1552745 - /commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/z/ZCompressorInputStream.java From: Gary Gregory To: Commons Developers List Content-Type: multipart/alternative; boundary=f46d0420a903b598b104edfb25f7 X-Virus-Checked: Checked by ClamAV on apache.org --f46d0420a903b598b104edfb25f7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, Dec 20, 2013 at 12:42 PM, Stefan Bodewig wrote= : > On 2013-12-20, Gary Gregory wrote: > > > On Fri, Dec 20, 2013 at 12:21 PM, Emmanuel Bourg > wrote: > > >> Le 20/12/2013 18:18, ggregory@apache.org a =C3=A9crit : > > >>> Remove some unnecessary parentheses. > > >> I'd argue they make the code easier to read. Reading bit shifting code > >> is quite painful, some parentheses help greatly. > > > > That's why it's only "some" and not "all" unnecessary parentheses. > > > IMO: > > > tableSize =3D (1 << 8); > > agree in this case, but not with > > - value |=3D (nextByte << (8 * i)); > + value |=3D nextByte << 8 * i; > > < > http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/= org/apache/commons/compress/archivers/sevenz/SevenZFile.java?r1=3D1552740&r= 2=3D1552739&pathrev=3D1552740 > > > > at least I need to think about it to be really sure * has precedence > over << > I've made some adjustments to this file in SVN. My intention was to not change the bit twiddling expressions, my mistake. Now we have: value |=3D nextByte << (8 * i); Gary > > Stefan > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > > --=20 E-Mail: garydgregory@gmail.com | ggregory@apache.org Java Persistence with Hibernate, Second Edition JUnit in Action, Second Edition Spring Batch in Action Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory --f46d0420a903b598b104edfb25f7--