ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gscok...@apache.org
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 GMT
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



Mime
View raw message