diff --git a/core/src/main/java/dev/siroshun/configapi/core/util/ResourceUtils.java b/core/src/main/java/dev/siroshun/configapi/core/util/ResourceUtils.java index 4d54f9f..e5214a8 100644 --- a/core/src/main/java/dev/siroshun/configapi/core/util/ResourceUtils.java +++ b/core/src/main/java/dev/siroshun/configapi/core/util/ResourceUtils.java @@ -195,7 +195,7 @@ public static void copyFromJarIfNotExists(@NotNull Path jarPath, } } - private static void copy(@NotNull IOSupplier inputSupplier, @NotNull Path target) throws IOException { + private static void copy(@NotNull InputStreamSupplier inputSupplier, @NotNull Path target) throws IOException { var parent = target.getParent(); if (parent != null && !Files.isDirectory(parent)) { @@ -210,10 +210,8 @@ private static void copy(@NotNull IOSupplier inputSupplier, @NotNul } @FunctionalInterface - private interface IOSupplier { - - T get() throws IOException; - + private interface InputStreamSupplier { + InputStream get() throws IOException; } private ResourceUtils() {