From 251f00418d1cdcc222bfbd8467455042afd05ee8 Mon Sep 17 00:00:00 2001 From: Ellen Spertus Date: Sun, 25 Feb 2024 14:24:14 -0800 Subject: [PATCH] Fix bug with checkstyle jar download --- .../com/spertus/jacquard/checkstylegrader/CheckstyleGrader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/spertus/jacquard/checkstylegrader/CheckstyleGrader.java b/src/main/java/com/spertus/jacquard/checkstylegrader/CheckstyleGrader.java index 52e60b1..73b8bbf 100644 --- a/src/main/java/com/spertus/jacquard/checkstylegrader/CheckstyleGrader.java +++ b/src/main/java/com/spertus/jacquard/checkstylegrader/CheckstyleGrader.java @@ -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())) {