Skip to content

Commit

Permalink
Fix bug with checkstyle jar download
Browse files Browse the repository at this point in the history
  • Loading branch information
espertus committed Feb 25, 2024
1 parent 6673978 commit 251f004
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ private void downloadCheckstyleIfNeeded() throws InternalException {
try {
final File file = new File(CHECKSTYLE_SUBDIR + "/" + CHECKSTYLE_JAR);
if (!file.exists()) {
Files.createDirectory(Paths.get(CHECKSTYLE_SUBDIR));
Files.createDirectories(Paths.get(CHECKSTYLE_SUBDIR));
// https://www.baeldung.com/java-download-file#using-nio
try (ReadableByteChannel readableByteChannel =
Channels.newChannel(new URL(CHECKSTYLE_URL).openStream())) {
Expand Down

0 comments on commit 251f004

Please sign in to comment.