Skip to content

Commit

Permalink
Merge pull request #1018 from amvanbaren/sonar-unused-imports
Browse files Browse the repository at this point in the history
Remove unused imports
  • Loading branch information
amvanbaren authored Oct 9, 2024
2 parents 6529ab1 + d0c9bb6 commit aff1bf0
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 22 deletions.
1 change: 0 additions & 1 deletion server/src/main/java/org/eclipse/openvsx/UserAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

import jakarta.servlet.http.HttpServletRequest;
import org.eclipse.openvsx.eclipse.EclipseService;
import org.eclipse.openvsx.entities.Extension;
import org.eclipse.openvsx.entities.NamespaceMembership;
import org.eclipse.openvsx.entities.UserData;
import org.eclipse.openvsx.json.*;
Expand Down
14 changes: 7 additions & 7 deletions server/src/main/java/org/eclipse/openvsx/entities/Extension.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@
********************************************************************************/
package org.eclipse.openvsx.entities;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.time.ZoneOffset;
import java.util.*;
import java.util.stream.Collectors;

import jakarta.persistence.*;

import org.eclipse.openvsx.search.ExtensionSearch;
import org.eclipse.openvsx.util.NamingUtil;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.time.ZoneOffset;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

@Entity
@Table(uniqueConstraints = {
@UniqueConstraint(columnNames = { "publicId" }),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,4 @@
* ****************************************************************************** */
package org.eclipse.openvsx.json;

import java.util.List;

public record VersionTargetPlatformsJson(String version, String[] targetPlatforms) {}
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@
import org.eclipse.openvsx.entities.ExtensionVersion;
import org.eclipse.openvsx.entities.FileResource;
import org.eclipse.openvsx.repositories.RepositoryService;
import org.eclipse.openvsx.util.TimeUtil;
import org.jobrunr.jobs.lambdas.JobRequestHandler;
import org.jobrunr.scheduling.JobRequestScheduler;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.data.util.Streamable;
import org.springframework.stereotype.Component;

import static org.eclipse.openvsx.entities.FileResource.DOWNLOAD_SIG;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

import org.eclipse.openvsx.entities.AdminStatistics;
import org.springframework.data.repository.Repository;
import org.springframework.data.util.Streamable;

public interface AdminStatisticsRepository extends Repository<AdminStatistics, Long> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,14 @@
********************************************************************************/
package org.eclipse.openvsx.repositories;

import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.Repository;
import org.springframework.data.util.Streamable;

import org.eclipse.openvsx.entities.Extension;
import org.eclipse.openvsx.entities.ExtensionReview;
import org.eclipse.openvsx.entities.UserData;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.Repository;
import org.springframework.data.util.Streamable;

import java.time.LocalDateTime;

import static org.eclipse.openvsx.cache.CacheService.CACHE_AVERAGE_REVIEW_RATING;

public interface ExtensionReviewRepository extends Repository<ExtensionReview, Long> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import org.springframework.data.util.Pair;
import org.springframework.stereotype.Component;

import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URI;
import java.nio.ByteBuffer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import org.eclipse.openvsx.util.TempFile;
import org.springframework.data.util.Pair;

import java.io.IOException;
import java.net.URI;
import java.util.List;

Expand Down

0 comments on commit aff1bf0

Please sign in to comment.