Return-Path: Delivered-To: apmail-hc-commits-archive@www.apache.org Received: (qmail 72908 invoked from network); 7 Dec 2010 14:22:43 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Dec 2010 14:22:43 -0000 Received: (qmail 85457 invoked by uid 500); 7 Dec 2010 14:22:43 -0000 Delivered-To: apmail-hc-commits-archive@hc.apache.org Received: (qmail 85411 invoked by uid 500); 7 Dec 2010 14:22:43 -0000 Mailing-List: contact commits-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 commits@hc.apache.org Received: (qmail 85397 invoked by uid 99); 7 Dec 2010 14:22:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Dec 2010 14:22:42 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Dec 2010 14:22:42 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 7A818238890A; Tue, 7 Dec 2010 14:22:21 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1043059 - /httpcomponents/httpasyncclient/trunk/src/main/java/org/apache/http/impl/nio/client/BasicHttpAsyncRequestProducer.java Date: Tue, 07 Dec 2010 14:22:21 -0000 To: commits@hc.apache.org From: olegk@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101207142221.7A818238890A@eris.apache.org> Author: olegk Date: Tue Dec 7 14:22:21 2010 New Revision: 1043059 URL: http://svn.apache.org/viewvc?rev=1043059&view=rev Log: Code cleanups Modified: httpcomponents/httpasyncclient/trunk/src/main/java/org/apache/http/impl/nio/client/BasicHttpAsyncRequestProducer.java Modified: httpcomponents/httpasyncclient/trunk/src/main/java/org/apache/http/impl/nio/client/BasicHttpAsyncRequestProducer.java URL: http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/trunk/src/main/java/org/apache/http/impl/nio/client/BasicHttpAsyncRequestProducer.java?rev=1043059&r1=1043058&r2=1043059&view=diff ============================================================================== --- httpcomponents/httpasyncclient/trunk/src/main/java/org/apache/http/impl/nio/client/BasicHttpAsyncRequestProducer.java (original) +++ httpcomponents/httpasyncclient/trunk/src/main/java/org/apache/http/impl/nio/client/BasicHttpAsyncRequestProducer.java Tue Dec 7 14:22:21 2010 @@ -67,11 +67,9 @@ public class BasicHttpAsyncRequestProduc protected ProducingNHttpEntity createProducingHttpEntity( final HttpRequest request) throws IOException { - HttpEntityEnclosingRequest entityReq; HttpEntity entity = null; if (request instanceof HttpEntityEnclosingRequest) { - entityReq = (HttpEntityEnclosingRequest) request; - entity = entityReq.getEntity(); + entity = ((HttpEntityEnclosingRequest) request).getEntity(); } if (entity != null) { if (entity instanceof ProducingNHttpEntity) { @@ -102,7 +100,7 @@ public class BasicHttpAsyncRequestProduc public synchronized boolean isRepeatable() { if (this.request instanceof HttpEntityEnclosingRequest) { - HttpEntity entity = ((HttpEntityEnclosingRequest) request).getEntity(); + HttpEntity entity = ((HttpEntityEnclosingRequest) this.request).getEntity(); if (entity != null) { return entity.isRepeatable(); } else {