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 39D0F1862A for ; Sat, 19 Dec 2015 16:54:27 +0000 (UTC) Received: (qmail 66434 invoked by uid 500); 19 Dec 2015 16:54:27 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 66390 invoked by uid 500); 19 Dec 2015 16:54:27 -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 66377 invoked by uid 99); 19 Dec 2015 16:54:26 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Dec 2015 16:54:26 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 5C0131A1478 for ; Sat, 19 Dec 2015 16:54:26 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.9 X-Spam-Level: ** X-Spam-Status: No, score=2.9 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id xCe5lCQ3W6bn for ; Sat, 19 Dec 2015 16:54:15 +0000 (UTC) Received: from mail-lf0-f47.google.com (mail-lf0-f47.google.com [209.85.215.47]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id E38BF20271 for ; Sat, 19 Dec 2015 16:54:14 +0000 (UTC) Received: by mail-lf0-f47.google.com with SMTP id z124so84935492lfa.3 for ; Sat, 19 Dec 2015 08:54:14 -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=nL3OdToH/I3i9w0gteo755dpbDLcE7VUWfcmUKXWTzs=; b=mGr2koSnD2QQeXgSbpNuKQErgfdNxqzBVUTyHBgldnfe88knngXiQA9vVAGUlHn1B+ EJxSQP6vuUwmJDB38NnXwP5RgDGts0gWt4upRH8B8o3ZyLNIKeiKRAwjKhxjInhhqeQ0 UE6thX/nsa5SwBZCrCqlcU4lcLOF5O4iF+zUz9XRHj9IfRkyaUig3GCyzJFrH1ZmFneT 2DF+pvBQZSoyBX5+lgcX6IT5uPCd+NHQiAeFJeIYMDP7vdx1FF/G+6nBafpgceL/qQ4w 0f4pN+JhQ096gBrHRDQ2ah3L5ehMy/6YtafYLLPKgmh5YjTgga3xdm7hqRT/h9scbztS 7qbQ== MIME-Version: 1.0 X-Received: by 10.25.207.205 with SMTP id f196mr3627732lfg.124.1450544053387; Sat, 19 Dec 2015 08:54:13 -0800 (PST) Received: by 10.112.200.70 with HTTP; Sat, 19 Dec 2015 08:54:13 -0800 (PST) In-Reply-To: References: Date: Sat, 19 Dec 2015 08:54:13 -0800 Message-ID: Subject: Re: response.getStatusLine().getStatusCode() shorthand From: Gary Gregory To: HttpComponents Project Content-Type: multipart/alternative; boundary=001a1140041c088d580527431b86 --001a1140041c088d580527431b86 Content-Type: text/plain; charset=UTF-8 Hi All, There are a lot of places where we say: response.getStatusLine().getStatusCode() Should we have a short cut response.getStatusCode() ? In Core alone, there are 64 such instances. Gary On Sat, Dec 19, 2015 at 8:52 AM, Gary Gregory wrote: > Hi All, > > There are a lot of places where we say: > > > -- > 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 > -- 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 --001a1140041c088d580527431b86--