From 697814fee66f595a46d03982e63b026a32917476 Mon Sep 17 00:00:00 2001 From: Siroshun09 Date: Sat, 28 Sep 2024 22:15:09 +0900 Subject: [PATCH] clean: rename IOSupplier to InputStreamSupplier --- .../dev/siroshun/configapi/core/util/ResourceUtils.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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() {