Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fdaugan committed Feb 4, 2024
1 parent a528794 commit 82c5634
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import javax.cache.annotation.CacheResult;
import java.io.*;
import java.net.URL;
import java.net.URI;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.*;
Expand Down Expand Up @@ -312,7 +312,7 @@ private void install(final File toDir, final String repository, final String ver
* @throws IOException When unzip fails : download, unzip, write file,...
*/
private void install(final File toDir, final String url) throws IOException {
try (var openStream = new URL(url).openStream()) {
try (var openStream = URI.create(url).toURL().openStream()) {
unzip(openStream, toDir).forEach(f -> f.setExecutable(true));
}
}
Expand Down

0 comments on commit 82c5634

Please sign in to comment.