From 404e8b671971ef51405545d387f2eee7143d4544 Mon Sep 17 00:00:00 2001 From: David Alvarez Date: Tue, 26 May 2026 16:53:17 +0200 Subject: [PATCH] fix: remove java.nio.file.Path import conflicting with @Path annotation --- src/main/java/com/dostalgia/GameResource.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/dostalgia/GameResource.java b/src/main/java/com/dostalgia/GameResource.java index e4e3392..0eed896 100644 --- a/src/main/java/com/dostalgia/GameResource.java +++ b/src/main/java/com/dostalgia/GameResource.java @@ -7,7 +7,6 @@ import jakarta.ws.rs.core.Response; import jakarta.ws.rs.core.StreamingOutput; import java.nio.file.NoSuchFileException; import java.nio.file.Files; -import java.nio.file.Path; import java.util.*; import java.util.zip.ZipEntry; import java.util.zip.ZipOutputStream; @@ -106,7 +105,7 @@ public class GameResource { if ("sockdrive".equals(game.getBundleType())) { // ZIP all game files on the fly, excluding metadata StreamingOutput stream = output -> { - Path gameDir = svc.gameDir(id); + var gameDir = svc.gameDir(id); try (var zos = new ZipOutputStream(output)) { Files.walk(gameDir) .filter(Files::isRegularFile) @@ -129,7 +128,7 @@ public class GameResource { .build(); } else { // Standard .jsdos bundle - Path bundlePath = svc.getGamesDir().resolve(game.getBundleFile()); + var bundlePath = svc.getGamesDir().resolve(game.getBundleFile()); if (!Files.exists(bundlePath)) { return Response.status(404).entity(Map.of("error", "Bundle file not found")).build(); }