Skip to content

Commit d7b6f85

Browse files
committed
Update ModuleInfoReaderWriter.java
1 parent 73f8c25 commit d7b6f85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

prism-core/src/main/java/io/avaje/prism/internal/ModuleInfoReaderWriter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,9 @@ public static void write(PrintWriter out, String packageName) {
248248
+ " }\n"
249249
+ "\n"
250250
+ " private static boolean isPresent(String path) {\n"
251-
+ " try (var inputStream = APContext.getBuildResource(path).toUri().toURL().openStream()) {\n"
251+
+ " try {\n"
252252
+ "\n"
253-
+ " return inputStream.available() > 0;\n"
253+
+ " return APContext.getBuildResource(path).toFile().exists();\n"
254254
+ " } catch (Exception e) {\n"
255255
+ " return false;\n"
256256
+ " }\n"

0 commit comments

Comments
 (0)