You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by ma...@apache.org on 2017/08/07 11:04:15 UTC

ant-ivy git commit: Fix stackoverflow

Repository: ant-ivy
Updated Branches:
  refs/heads/master 9b2165894 -> f4237388e


Fix stackoverflow


Project: http://git-wip-us.apache.org/repos/asf/ant-ivy/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant-ivy/commit/f4237388
Tree: http://git-wip-us.apache.org/repos/asf/ant-ivy/tree/f4237388
Diff: http://git-wip-us.apache.org/repos/asf/ant-ivy/diff/f4237388

Branch: refs/heads/master
Commit: f4237388ea9b93278db12a43c9db9f18e51b6f7f
Parents: 9b21658
Author: Maarten Coene <ma...@apache.org>
Authored: Mon Aug 7 13:03:58 2017 +0200
Committer: Maarten Coene <ma...@apache.org>
Committed: Mon Aug 7 13:03:58 2017 +0200

----------------------------------------------------------------------
 src/java/org/apache/ivy/util/url/BasicURLHandler.java | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/f4237388/src/java/org/apache/ivy/util/url/BasicURLHandler.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/ivy/util/url/BasicURLHandler.java b/src/java/org/apache/ivy/util/url/BasicURLHandler.java
index 342ad04..24bef51 100644
--- a/src/java/org/apache/ivy/util/url/BasicURLHandler.java
+++ b/src/java/org/apache/ivy/util/url/BasicURLHandler.java
@@ -22,13 +22,7 @@ import org.apache.ivy.util.CopyProgressListener;
 import org.apache.ivy.util.FileUtil;
 import org.apache.ivy.util.Message;
 
-import java.io.ByteArrayInputStream;
-import java.io.ByteArrayOutputStream;
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
+import java.io.*;
 import java.net.HttpURLConnection;
 import java.net.URL;
 import java.net.URLConnection;
@@ -261,7 +255,7 @@ public class BasicURLHandler extends AbstractURLHandler {
 
     @Override
     public void upload(final File source, final URL dest, final CopyProgressListener l) throws IOException {
-        this.upload(source, dest, l);
+        this.upload(source, dest, l, null);
     }
 
     @Override