Skip to content

Commit

Permalink
clean: rename IOSupplier to InputStreamSupplier
Browse files Browse the repository at this point in the history
  • Loading branch information
Siroshun09 committed Oct 30, 2024
1 parent ccfc7bb commit 697814f
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public static void copyFromJarIfNotExists(@NotNull Path jarPath,
}
}

private static void copy(@NotNull IOSupplier<InputStream> 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)) {
Expand All @@ -210,10 +210,8 @@ private static void copy(@NotNull IOSupplier<InputStream> inputSupplier, @NotNul
}

@FunctionalInterface
private interface IOSupplier<T> {

T get() throws IOException;

private interface InputStreamSupplier {
InputStream get() throws IOException;
}

private ResourceUtils() {
Expand Down

0 comments on commit 697814f

Please sign in to comment.