Return-Path: Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: (qmail 59255 invoked from network); 9 Jun 2010 20:11:04 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Jun 2010 20:11:04 -0000 Received: (qmail 61674 invoked by uid 500); 9 Jun 2010 20:11:04 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 61646 invoked by uid 500); 9 Jun 2010 20:11:04 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 61639 invoked by uid 99); 9 Jun 2010 20:11:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jun 2010 20:11:04 +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; Wed, 09 Jun 2010 20:11:03 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 05B9823889C5; Wed, 9 Jun 2010 20:10:22 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r953139 - /ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/BasicURLHandler.java Date: Wed, 09 Jun 2010 20:10:21 -0000 To: notifications@ant.apache.org From: gscokart@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100609201022.05B9823889C5@eris.apache.org> Author: gscokart Date: Wed Jun 9 20:10:21 2010 New Revision: 953139 URL: http://svn.apache.org/viewvc?rev=953139&view=rev Log: Remove EmptyBlockCheck checkstyle error Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/BasicURLHandler.java Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/BasicURLHandler.java URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/BasicURLHandler.java?rev=953139&r1=953138&r2=953139&view=diff ============================================================================== --- ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/BasicURLHandler.java (original) +++ ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/BasicURLHandler.java Wed Jun 9 20:10:21 2010 @@ -242,6 +242,9 @@ public class BasicURLHandler extends Abs } } + /** + * Read and ignore the response body. + */ private void readResponseBody(HttpURLConnection conn) { byte[] buffer = new byte[BUFFER_SIZE]; @@ -249,6 +252,7 @@ public class BasicURLHandler extends Abs try { inStream = conn.getInputStream(); while (inStream.read(buffer) > 0) { + //Skip content } } catch (IOException e) { // ignore @@ -266,6 +270,7 @@ public class BasicURLHandler extends Abs if (errStream != null) { try { while (errStream.read(buffer) > 0) { + //Skip content } } catch (IOException e) { // ignore