From 57bdf61cd9f341832a1301423420a88d107997ce Mon Sep 17 00:00:00 2001 From: amvanbaren Date: Wed, 20 Nov 2024 12:04:30 +0200 Subject: [PATCH] Remove unused imports --- .../org/eclipse/openvsx/adapter/VSCodeIdService.java | 2 -- .../admin/AdminStatisticsJobRequestHandler.java | 1 - .../eclipse/openvsx/eclipse/PublisherAgreement.java | 1 - .../eclipse/openvsx/migration/MigrationService.java | 11 ----------- .../java/org/eclipse/openvsx/util/ArchiveUtil.java | 1 - 5 files changed, 16 deletions(-) diff --git a/server/src/main/java/org/eclipse/openvsx/adapter/VSCodeIdService.java b/server/src/main/java/org/eclipse/openvsx/adapter/VSCodeIdService.java index bee49831c..b2b64c938 100644 --- a/server/src/main/java/org/eclipse/openvsx/adapter/VSCodeIdService.java +++ b/server/src/main/java/org/eclipse/openvsx/adapter/VSCodeIdService.java @@ -9,7 +9,6 @@ ********************************************************************************/ package org.eclipse.openvsx.adapter; -import com.google.common.collect.Lists; import org.apache.commons.lang3.StringUtils; import org.eclipse.openvsx.UrlConfigService; import org.eclipse.openvsx.entities.Extension; @@ -31,7 +30,6 @@ import org.springframework.web.client.RestTemplate; import java.time.ZoneId; -import java.util.ArrayList; import java.util.List; import java.util.UUID; diff --git a/server/src/main/java/org/eclipse/openvsx/admin/AdminStatisticsJobRequestHandler.java b/server/src/main/java/org/eclipse/openvsx/admin/AdminStatisticsJobRequestHandler.java index fdb34beb3..235623543 100644 --- a/server/src/main/java/org/eclipse/openvsx/admin/AdminStatisticsJobRequestHandler.java +++ b/server/src/main/java/org/eclipse/openvsx/admin/AdminStatisticsJobRequestHandler.java @@ -15,7 +15,6 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; -import org.springframework.util.StopWatch; import java.time.LocalDateTime; diff --git a/server/src/main/java/org/eclipse/openvsx/eclipse/PublisherAgreement.java b/server/src/main/java/org/eclipse/openvsx/eclipse/PublisherAgreement.java index 757b5eb0a..f03671852 100644 --- a/server/src/main/java/org/eclipse/openvsx/eclipse/PublisherAgreement.java +++ b/server/src/main/java/org/eclipse/openvsx/eclipse/PublisherAgreement.java @@ -10,7 +10,6 @@ package org.eclipse.openvsx.eclipse; import java.time.LocalDateTime; -import java.util.Objects; /** * diff --git a/server/src/main/java/org/eclipse/openvsx/migration/MigrationService.java b/server/src/main/java/org/eclipse/openvsx/migration/MigrationService.java index 6eb3a0013..09c9fb8dc 100644 --- a/server/src/main/java/org/eclipse/openvsx/migration/MigrationService.java +++ b/server/src/main/java/org/eclipse/openvsx/migration/MigrationService.java @@ -14,11 +14,7 @@ import org.eclipse.openvsx.entities.ExtensionVersion; import org.eclipse.openvsx.entities.FileResource; import org.eclipse.openvsx.entities.MigrationItem; -import org.eclipse.openvsx.entities.Namespace; import org.eclipse.openvsx.repositories.RepositoryService; -import org.eclipse.openvsx.storage.AzureBlobStorageService; -import org.eclipse.openvsx.storage.GoogleCloudStorageService; -import org.eclipse.openvsx.storage.IStorageService; import org.eclipse.openvsx.storage.StorageUtilService; import org.eclipse.openvsx.util.NamingUtil; import org.eclipse.openvsx.util.TempFile; @@ -26,18 +22,11 @@ import org.jobrunr.scheduling.JobRequestScheduler; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.springframework.http.HttpMethod; -import org.springframework.http.HttpStatus; import org.springframework.retry.annotation.Retryable; import org.springframework.stereotype.Component; -import org.springframework.web.client.HttpClientErrorException; -import org.springframework.web.client.RestTemplate; import java.io.IOException; import java.nio.charset.StandardCharsets; -import java.nio.file.Files; -import java.util.AbstractMap; -import java.util.Map; import java.util.UUID; @Component diff --git a/server/src/main/java/org/eclipse/openvsx/util/ArchiveUtil.java b/server/src/main/java/org/eclipse/openvsx/util/ArchiveUtil.java index 5e3479498..97383d21e 100644 --- a/server/src/main/java/org/eclipse/openvsx/util/ArchiveUtil.java +++ b/server/src/main/java/org/eclipse/openvsx/util/ArchiveUtil.java @@ -12,7 +12,6 @@ import java.io.IOException; import java.nio.file.Files; import java.util.zip.ZipEntry; -import java.util.zip.ZipException; import java.util.zip.ZipFile; public final class ArchiveUtil {