diff options
author | Zipeng WU <zipeng.wu@sonarsource.com> | 2020-12-11 14:55:15 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2020-12-11 20:07:52 +0000 |
commit | 5c55c92b791298f7f70fce4a180f760e094f9a0f (patch) | |
tree | 35b033d016a64783996d8c9d451d2a681857db85 /server | |
parent | 2ac9b4f8038f33009f5ae3b8bef8552a5506830f (diff) | |
download | sonarqube-5c55c92b791298f7f70fce4a180f760e094f9a0f.tar.gz sonarqube-5c55c92b791298f7f70fce4a180f760e094f9a0f.zip |
Code smell fix: remove unused code
Diffstat (limited to 'server')
6 files changed, 0 insertions, 9 deletions
diff --git a/server/sonar-db-dao/src/main/java/org/sonar/db/issue/IssueDto.java b/server/sonar-db-dao/src/main/java/org/sonar/db/issue/IssueDto.java index d7853d00861..c2462a80fb4 100644 --- a/server/sonar-db-dao/src/main/java/org/sonar/db/issue/IssueDto.java +++ b/server/sonar-db-dao/src/main/java/org/sonar/db/issue/IssueDto.java @@ -96,7 +96,6 @@ public final class IssueDto implements Serializable { private String projectKey; private String filePath; private String tags; - private boolean isFromHotspot; // populate only when retrieving closed issue for issue tracking private String closedChangeData; diff --git a/server/sonar-webserver-core/src/main/java/org/sonar/server/telemetry/TelemetryDataLoaderImpl.java b/server/sonar-webserver-core/src/main/java/org/sonar/server/telemetry/TelemetryDataLoaderImpl.java index 202835901f8..4682ebb9fe4 100644 --- a/server/sonar-webserver-core/src/main/java/org/sonar/server/telemetry/TelemetryDataLoaderImpl.java +++ b/server/sonar-webserver-core/src/main/java/org/sonar/server/telemetry/TelemetryDataLoaderImpl.java @@ -38,7 +38,6 @@ import org.sonar.db.measure.SumNclocDbQuery; import org.sonar.server.es.SearchOptions; import org.sonar.server.measure.index.ProjectMeasuresIndex; import org.sonar.server.measure.index.ProjectMeasuresStatistics; -import org.sonar.server.organization.DefaultOrganizationProvider; import org.sonar.server.platform.DockerSupport; import org.sonar.server.property.InternalProperties; import org.sonar.server.telemetry.TelemetryData.Database; diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/component/ws/SearchAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/component/ws/SearchAction.java index 1910c399947..1421ded253f 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/component/ws/SearchAction.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/component/ws/SearchAction.java @@ -211,7 +211,6 @@ public class SearchAction implements ComponentsWsAction { private Integer page; private Integer pageSize; private String query; - private String language; @CheckForNull public String getOrganization() { diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/EditCommentAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/EditCommentAction.java index 74c3af75425..e8c85306f6e 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/EditCommentAction.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/EditCommentAction.java @@ -21,13 +21,11 @@ package org.sonar.server.issue.ws; import com.google.common.io.Resources; import java.util.Objects; -import java.util.stream.Stream; import org.sonar.api.server.ws.Change; import org.sonar.api.server.ws.Request; import org.sonar.api.server.ws.Response; import org.sonar.api.server.ws.WebService; import org.sonar.api.utils.System2; -import org.sonar.core.util.stream.MoreCollectors; import org.sonar.db.DbClient; import org.sonar.db.DbSession; import org.sonar.db.issue.IssueChangeDto; diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/ui/ws/MarketplaceAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/ui/ws/MarketplaceAction.java index 91191e57b8c..7d837888695 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/ui/ws/MarketplaceAction.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/ui/ws/MarketplaceAction.java @@ -26,7 +26,6 @@ import org.sonar.api.server.ws.WebService; import org.sonar.db.DbClient; import org.sonar.db.DbSession; import org.sonar.db.measure.SumNclocDbQuery; -import org.sonar.server.organization.DefaultOrganizationProvider; import org.sonar.server.user.UserSession; import org.sonarqube.ws.Navigation; diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/user/ws/EmailValidator.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/user/ws/EmailValidator.java index 4ba7a72779c..e8d94849dd0 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/user/ws/EmailValidator.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/user/ws/EmailValidator.java @@ -19,13 +19,10 @@ */ package org.sonar.server.user.ws; -import java.util.regex.Matcher; -import java.util.regex.Pattern; import javax.annotation.Nullable; import javax.mail.internet.AddressException; import javax.mail.internet.InternetAddress; -import static java.util.regex.Pattern.compile; import static org.apache.commons.lang.StringUtils.isEmpty; class EmailValidator { |