diff --git a/pom.xml b/pom.xml index e2604715..4347d0db 100644 --- a/pom.xml +++ b/pom.xml @@ -434,10 +434,22 @@ + + + org.jdom + jdom2 + 2.0.6.1 + com.intellij forms_rt 7.0.3 + + + jdom + jdom + + @@ -474,10 +486,21 @@ 1.18.24 provided + + org.apache.commons + commons-collections4 + 4.4 + commons-validator commons-validator 1.7 + + + commons-collections + commons-collections + + diff --git a/src/main/java/com/github/benchdoos/weblocopener/service/impl/DefaultHtmlService.java b/src/main/java/com/github/benchdoos/weblocopener/service/impl/DefaultHtmlService.java index 380b64b6..d873a7c7 100644 --- a/src/main/java/com/github/benchdoos/weblocopener/service/impl/DefaultHtmlService.java +++ b/src/main/java/com/github/benchdoos/weblocopener/service/impl/DefaultHtmlService.java @@ -7,15 +7,16 @@ import com.github.benchdoos.weblocopenercore.service.translation.Translation; import j2html.TagCreator; import j2html.tags.specialized.HtmlTag; +import lombok.extern.log4j.Log4j2; +import org.apache.commons.collections4.CollectionUtils; +import org.apache.commons.lang3.StringUtils; +import org.jetbrains.annotations.NotNull; + import java.io.Serializable; import java.util.ArrayList; import java.util.List; import java.util.Locale; import java.util.Map; -import lombok.extern.log4j.Log4j2; -import org.apache.commons.collections.CollectionUtils; -import org.apache.commons.lang3.StringUtils; -import org.jetbrains.annotations.NotNull; @Log4j2 public class DefaultHtmlService implements Serializable, HtmlService { diff --git a/src/main/java/com/github/benchdoos/weblocopener/update/impl/UnixUpdater.java b/src/main/java/com/github/benchdoos/weblocopener/update/impl/UnixUpdater.java index 2919b261..d8102e5e 100644 --- a/src/main/java/com/github/benchdoos/weblocopener/update/impl/UnixUpdater.java +++ b/src/main/java/com/github/benchdoos/weblocopener/update/impl/UnixUpdater.java @@ -29,7 +29,7 @@ import com.github.benchdoos.weblocopenercore.service.actions.ActionListenerSupport; import lombok.Getter; import lombok.extern.log4j.Log4j2; -import org.apache.commons.collections.CollectionUtils; +import org.apache.commons.collections4.CollectionUtils; import org.assertj.core.util.Files; import javax.swing.*; diff --git a/src/main/java/com/github/benchdoos/weblocopener/update/impl/WindowsUpdater.java b/src/main/java/com/github/benchdoos/weblocopener/update/impl/WindowsUpdater.java index 8170109d..f5c9d87f 100644 --- a/src/main/java/com/github/benchdoos/weblocopener/update/impl/WindowsUpdater.java +++ b/src/main/java/com/github/benchdoos/weblocopener/update/impl/WindowsUpdater.java @@ -27,7 +27,7 @@ import com.github.benchdoos.weblocopenercore.exceptions.NoAvailableVersionException; import lombok.Getter; import lombok.extern.log4j.Log4j2; -import org.apache.commons.collections.CollectionUtils; +import org.apache.commons.collections4.CollectionUtils; import java.io.File; import java.io.IOException; diff --git a/src/main/java/com/github/benchdoos/weblocopener/utils/UpdateHelperUtil.java b/src/main/java/com/github/benchdoos/weblocopener/utils/UpdateHelperUtil.java index 51b50232..69c5561b 100644 --- a/src/main/java/com/github/benchdoos/weblocopener/utils/UpdateHelperUtil.java +++ b/src/main/java/com/github/benchdoos/weblocopener/utils/UpdateHelperUtil.java @@ -9,16 +9,17 @@ import com.github.benchdoos.weblocopenercore.service.actions.ActionListener; import com.github.benchdoos.weblocopenercore.utils.system.OS; import com.github.benchdoos.weblocopenercore.utils.version.Version; +import lombok.experimental.UtilityClass; +import lombok.extern.log4j.Log4j2; +import org.apache.commons.collections4.CollectionUtils; +import org.apache.commons.io.IOUtils; + +import javax.swing.*; import java.io.File; import java.io.IOException; import java.net.URL; import java.nio.charset.StandardCharsets; import java.util.List; -import javax.swing.Timer; -import lombok.experimental.UtilityClass; -import lombok.extern.log4j.Log4j2; -import org.apache.commons.collections.CollectionUtils; -import org.apache.commons.io.IOUtils; @UtilityClass @Log4j2 diff --git a/src/test/java/com/github/benchdoos/weblocopener/update/UpdaterHelperTest.java b/src/test/java/com/github/benchdoos/weblocopener/update/UpdaterHelperTest.java index b51345d9..e1eade85 100644 --- a/src/test/java/com/github/benchdoos/weblocopener/update/UpdaterHelperTest.java +++ b/src/test/java/com/github/benchdoos/weblocopener/update/UpdaterHelperTest.java @@ -3,7 +3,7 @@ import com.github.benchdoos.weblocopener.base.BaseUnitTest; import com.github.benchdoos.weblocopener.utils.UpdateHelperUtil; import com.github.benchdoos.weblocopenercore.domain.version.UpdateInfo; -import org.apache.commons.collections.CollectionUtils; +import org.apache.commons.collections4.CollectionUtils; import org.junit.jupiter.api.Test; import org.junit.platform.commons.util.StringUtils;