]> source.dussan.org Git - sonarqube.git/commitdiff
[NOJIRA] Remove unused imports. (#8541)
authorWojtek Wajerowicz <115081248+wojciech-wajerowicz-sonarsource@users.noreply.github.com>
Tue, 13 Jun 2023 10:07:13 +0000 (12:07 +0200)
committersonartech <sonartech@sonarsource.com>
Tue, 13 Jun 2023 20:03:37 +0000 (20:03 +0000)
12 files changed:
server/sonar-ce-common/src/main/java/org/sonar/ce/queue/CeTaskSubmit.java
server/sonar-server-common/src/main/java/org/sonar/server/notification/DefaultNotificationManager.java
server/sonar-server-common/src/main/java/org/sonar/server/notification/NotificationManager.java
server/sonar-webserver-auth/src/main/java/org/sonar/server/authentication/BasicAuthentication.java
server/sonar-webserver-auth/src/main/java/org/sonar/server/authentication/CredentialsAuthentication.java
server/sonar-webserver-auth/src/main/java/org/sonar/server/authentication/SamlValidationCspHeaders.java
server/sonar-webserver-auth/src/main/java/org/sonar/server/usertoken/UserTokenAuthentication.java
server/sonar-webserver-webapi/src/main/java/org/sonar/server/favorite/ws/SearchAction.java
server/sonar-webserver-webapi/src/main/java/org/sonar/server/setting/ws/SettingValidations.java
server/sonar-webserver-webapi/src/main/java/org/sonar/server/setting/ws/SettingsUpdater.java
server/sonar-webserver-webapi/src/main/java/org/sonar/server/setting/ws/SettingsWsSupport.java
sonar-scanner-engine/src/main/java/org/sonar/scm/git/GitScmProvider.java

index dcfc17b554506dba9c3800414a2b7faee2be332e..a6e45798323615c491b07197e2aaaa96a039e6f5 100644 (file)
@@ -26,11 +26,9 @@ import javax.annotation.CheckForNull;
 import javax.annotation.Nullable;
 import javax.annotation.concurrent.Immutable;
 import org.sonar.db.component.BranchDto;
-import org.sonar.db.component.ComponentDto;
 import org.sonar.db.portfolio.PortfolioDto;
 import org.sonar.db.project.ProjectDto;
 
-import static com.google.common.base.MoreObjects.firstNonNull;
 import static com.google.common.base.Strings.emptyToNull;
 import static com.google.common.base.Strings.nullToEmpty;
 import static java.util.Collections.unmodifiableMap;
index eed10f265f262f1ed3208cc210d1e120ab8f5079..641c30a26eee9a26ceb38b134f8c624888af90d2 100644 (file)
 package org.sonar.server.notification;
 
 import com.google.common.annotations.VisibleForTesting;
-import com.google.common.collect.ImmutableMultimap;
-import com.google.common.collect.ImmutableSetMultimap;
-import com.google.common.collect.Multimap;
 import java.io.IOException;
 import java.io.InvalidClassException;
 import java.util.Arrays;
-import java.util.Collections;
 import java.util.List;
-import java.util.Objects;
 import java.util.Set;
 import java.util.stream.Collectors;
 import java.util.stream.Stream;
@@ -43,7 +38,6 @@ import org.sonar.db.DbClient;
 import org.sonar.db.DbSession;
 import org.sonar.db.EmailSubscriberDto;
 import org.sonar.db.notification.NotificationQueueDto;
-import org.sonar.db.property.Subscriber;
 import org.sonar.server.notification.email.EmailNotificationChannel;
 
 import static java.util.Collections.emptySet;
index be336191a8f1eb7915e8d3d8ec46ce839c7de017..cd8b6077c364c194f98fbae5c3088f59b0fe8f51 100644 (file)
  */
 package org.sonar.server.notification;
 
-import com.google.common.collect.Multimap;
 import java.util.Objects;
 import java.util.Set;
 import org.sonar.api.notifications.Notification;
-import org.sonar.api.notifications.NotificationChannel;
 import org.sonar.api.web.UserRole;
 
 import static java.util.Objects.requireNonNull;
index e012d8c210b656c0d827c546d9b8e6d9e5dcfa1c..eb3283f5f6aad4b631042e4759eb10fca709086f 100644 (file)
@@ -21,7 +21,6 @@ package org.sonar.server.authentication;
 
 import java.util.Base64;
 import java.util.Optional;
-import javax.servlet.http.HttpServletRequest;
 import org.sonar.api.server.http.HttpRequest;
 import org.sonar.db.user.UserDto;
 import org.sonar.server.authentication.event.AuthenticationEvent;
index 8f0f98c2c2ef4027a91a98b02a50602a867813b4..99a69522119de53f3a9471339bed5d73ae118804 100644 (file)
@@ -20,7 +20,6 @@
 package org.sonar.server.authentication;
 
 import java.util.Optional;
-import javax.servlet.http.HttpServletRequest;
 import org.sonar.api.server.http.HttpRequest;
 import org.sonar.db.DbClient;
 import org.sonar.db.DbSession;
index 8f96b039e7a6be7232895a80ff39d9e0b87460d4..bfdf50901eb431f2296190791b9c20a771e1c8d4 100644 (file)
@@ -22,7 +22,6 @@ package org.sonar.server.authentication;
 import java.math.BigInteger;
 import java.security.SecureRandom;
 import java.util.List;
-import javax.servlet.http.HttpServletResponse;
 import org.sonar.api.server.http.HttpResponse;
 
 public class SamlValidationCspHeaders {
index 8ee0e5e4e7f3f7fc9566c7777414527e47b5cfd7..d8c8f068e2f7210dda8540cbe13e169ff2fafe5b 100644 (file)
@@ -21,7 +21,6 @@ package org.sonar.server.usertoken;
 
 import java.util.Optional;
 import javax.annotation.Nullable;
-import javax.servlet.http.HttpServletRequest;
 import org.apache.commons.lang.StringUtils;
 import org.sonar.api.server.http.HttpRequest;
 import org.sonar.db.DbClient;
index 11111b1398890675beda7e40459f7bfc81129e20..39db8a79ccc74aea2b15845f0500919dad2acc4b 100644 (file)
@@ -27,7 +27,6 @@ import org.sonar.api.server.ws.WebService.Param;
 import org.sonar.api.utils.Paging;
 import org.sonar.api.web.UserRole;
 import org.sonar.core.util.stream.MoreCollectors;
-import org.sonar.db.component.ComponentDto;
 import org.sonar.db.entity.EntityDto;
 import org.sonar.server.favorite.FavoriteFinder;
 import org.sonar.server.user.UserSession;
index c978d12d3cf5a6852a03a29aa71b258a280ace39..f1f5e18f09018dd88f60be174f699a1572e18c31 100644 (file)
@@ -23,7 +23,6 @@ import com.google.gson.Gson;
 import com.google.gson.JsonElement;
 import java.io.IOException;
 import java.io.InputStream;
-import java.util.Collection;
 import java.util.List;
 import java.util.Locale;
 import java.util.Optional;
@@ -49,7 +48,6 @@ import org.sonar.db.user.UserDto;
 import org.sonar.server.exceptions.BadRequestException;
 
 import static java.lang.String.format;
-import static java.util.Arrays.asList;
 import static java.util.Objects.requireNonNull;
 import static org.sonar.server.exceptions.BadRequestException.checkRequest;
 
index ae793d4a9f5ec278b7528ee7f178f4b6b8dd1ec2..25a1b7e0be58b7648fab58aba26d2c76f30e3192 100644 (file)
@@ -28,7 +28,6 @@ import org.sonar.api.config.PropertyDefinition;
 import org.sonar.api.config.PropertyDefinitions;
 import org.sonar.db.DbClient;
 import org.sonar.db.DbSession;
-import org.sonar.db.component.ComponentDto;
 import org.sonar.db.entity.EntityDto;
 import org.sonar.db.property.PropertyDto;
 
index e95241f75a2ad97d477f88ffd9702ca734432b00..846b1d866a89c6211820b9ab8e7a2608de075938 100644 (file)
@@ -24,7 +24,6 @@ import java.util.Optional;
 import java.util.Set;
 import org.sonar.api.server.ServerSide;
 import org.sonar.api.web.UserRole;
-import org.sonar.db.component.ComponentDto;
 import org.sonar.db.entity.EntityDto;
 import org.sonar.db.permission.GlobalPermission;
 import org.sonar.process.ProcessProperties;
index 329e412bc24d90dd363a59dd2ca49efd91adba64..cd287270a68d0b5a3fafab74678807f14edae70b 100644 (file)
@@ -30,7 +30,6 @@ import java.util.Collection;
 import java.util.HashMap;
 import java.util.HashSet;
 import java.util.LinkedHashMap;
-import java.util.LinkedList;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;