From e16aa907e5cbe641f96ea447463e0b6305e25ecd Mon Sep 17 00:00:00 2001 From: Maddie <52103563+maddie480@users.noreply.github.com> Date: Wed, 18 Sep 2024 21:00:46 +0200 Subject: [PATCH] Optimize imports --- .../ovh/maddie480/everest/updatechecker/BananaMirror.java | 7 ++++--- .../updatechecker/BananaMirrorRichPresenceIcons.java | 1 - .../maddie480/everest/updatechecker/DatabaseUpdater.java | 2 -- .../everest/updatechecker/DependencyGraphBuilder.java | 7 ++++--- .../maddie480/everest/updatechecker/FileDownloader.java | 6 +----- .../everest/updatechecker/ModFilesDatabaseBuilder.java | 1 - 6 files changed, 9 insertions(+), 15 deletions(-) diff --git a/src/main/java/ovh/maddie480/everest/updatechecker/BananaMirror.java b/src/main/java/ovh/maddie480/everest/updatechecker/BananaMirror.java index 21dbcec..99679a8 100755 --- a/src/main/java/ovh/maddie480/everest/updatechecker/BananaMirror.java +++ b/src/main/java/ovh/maddie480/everest/updatechecker/BananaMirror.java @@ -1,12 +1,13 @@ package ovh.maddie480.everest.updatechecker; import com.jcraft.jsch.*; -import org.apache.commons.io.FileUtils; -import org.apache.commons.io.IOUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import java.io.*; +import java.io.FileInputStream; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.InputStream; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; diff --git a/src/main/java/ovh/maddie480/everest/updatechecker/BananaMirrorRichPresenceIcons.java b/src/main/java/ovh/maddie480/everest/updatechecker/BananaMirrorRichPresenceIcons.java index 9f5fb2f..8fdf255 100755 --- a/src/main/java/ovh/maddie480/everest/updatechecker/BananaMirrorRichPresenceIcons.java +++ b/src/main/java/ovh/maddie480/everest/updatechecker/BananaMirrorRichPresenceIcons.java @@ -1,7 +1,6 @@ package ovh.maddie480.everest.updatechecker; import org.apache.commons.io.FileUtils; -import org.apache.commons.io.IOUtils; import org.json.JSONArray; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/main/java/ovh/maddie480/everest/updatechecker/DatabaseUpdater.java b/src/main/java/ovh/maddie480/everest/updatechecker/DatabaseUpdater.java index 5e19c48..7320b49 100755 --- a/src/main/java/ovh/maddie480/everest/updatechecker/DatabaseUpdater.java +++ b/src/main/java/ovh/maddie480/everest/updatechecker/DatabaseUpdater.java @@ -2,8 +2,6 @@ import net.jpountz.xxhash.StreamingXXHash64; import net.jpountz.xxhash.XXHashFactory; -import org.apache.commons.io.FileUtils; -import org.apache.commons.io.IOUtils; import org.apache.commons.lang3.exception.ExceptionUtils; import org.json.JSONArray; import org.json.JSONException; diff --git a/src/main/java/ovh/maddie480/everest/updatechecker/DependencyGraphBuilder.java b/src/main/java/ovh/maddie480/everest/updatechecker/DependencyGraphBuilder.java index 143829d..ea55cfd 100755 --- a/src/main/java/ovh/maddie480/everest/updatechecker/DependencyGraphBuilder.java +++ b/src/main/java/ovh/maddie480/everest/updatechecker/DependencyGraphBuilder.java @@ -1,11 +1,12 @@ package ovh.maddie480.everest.updatechecker; -import org.apache.commons.io.FileUtils; -import org.apache.commons.io.IOUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import java.io.*; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; diff --git a/src/main/java/ovh/maddie480/everest/updatechecker/FileDownloader.java b/src/main/java/ovh/maddie480/everest/updatechecker/FileDownloader.java index dce8833..c2cf5c2 100644 --- a/src/main/java/ovh/maddie480/everest/updatechecker/FileDownloader.java +++ b/src/main/java/ovh/maddie480/everest/updatechecker/FileDownloader.java @@ -4,11 +4,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import java.io.BufferedInputStream; -import java.io.BufferedOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; +import java.io.*; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; diff --git a/src/main/java/ovh/maddie480/everest/updatechecker/ModFilesDatabaseBuilder.java b/src/main/java/ovh/maddie480/everest/updatechecker/ModFilesDatabaseBuilder.java index bb6d4fd..3e0f423 100755 --- a/src/main/java/ovh/maddie480/everest/updatechecker/ModFilesDatabaseBuilder.java +++ b/src/main/java/ovh/maddie480/everest/updatechecker/ModFilesDatabaseBuilder.java @@ -1,7 +1,6 @@ package ovh.maddie480.everest.updatechecker; import org.apache.commons.io.FileUtils; -import org.apache.commons.io.IOUtils; import org.apache.commons.lang3.tuple.Triple; import org.slf4j.Logger; import org.slf4j.LoggerFactory;