Skip to content

Commit 046c53d

Browse files
committed
fix some compilation errors in fileutils
1 parent 404ab7a commit 046c53d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/io/github/fvarrui/javapackager/utils/FileUtils.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
import java.io.FileOutputStream;
1515
import java.io.IOException;
1616
import java.io.InputStream;
17+
import java.net.HttpURLConnection;
18+
import java.net.MalformedURLException;
1719
import java.net.URI;
1820
import java.net.URISyntaxException;
1921
import java.net.URL;
@@ -328,10 +330,12 @@ public static void downloadFromUrl(URL url, File file) throws Exception {
328330
*
329331
* @param url URL to download
330332
* @param file File to copy the downloaded resource
333+
* @throws Exception
334+
* @throws MalformedURLException
331335
* @throws IOException Resource cannot be copied/downloaded
332336
* @throws URISyntaxException
333337
*/
334-
public static void downloadFromUrl(String url, File file) throws IOException, URISyntaxException {
338+
public static void downloadFromUrl(String url, File file) throws MalformedURLException, URISyntaxException, Exception {
335339
downloadFromUrl(new URI(url).toURL(), file);
336340
}
337341

0 commit comments

Comments
 (0)